great-northern-diver / loon

A Toolkit for Interactive Statistical Data Visualization
http://great-northern-diver.github.io/loon/
GNU General Public License v2.0
48 stars 16 forks source link

Optimize loonGrob memory cost #172

Closed z267xu closed 2 years ago

z267xu commented 2 years ago

if aesthetics are length n repeated vectors, then, in grid, we only need a scalar to set these aesthetics (e.g., color = c("red", "red", "red") --> color = "red"). The benefit is that, if the number of data is large (e.g., 1 million), it takes much less storage.