hafen / trelliscopejs

TrelliscopeJS R Package
https://hafen.github.io/trelliscopejs
Other
263 stars 36 forks source link

Aspect ratio of plots doesn't change when ncol or nrow does #57

Open jimjam-slam opened 6 years ago

jimjam-slam commented 6 years ago

Trelliscopejs is really, really cool! One thing I found myself doing when exploring the demo was looking at a faceted view, with 6 or 8 plots on it, and then wanting to focus on just one for a moment. I couldn't find a way to 'zoom' in one plot, but I could reduce the number of rows and columns to get the same effect.

However, if you do this, the aspect ratio of the plots doesn't change. That is, they may grow bigger if I reduce the number of rows (or columns, if that's the limiting factor), but they won't resize to fill up the the resulting space if it means changing aspect ratio.

I assume that this is to avoid redrawing the plots (which could potentially take a while). is the best way to deal with this to just try to aim for an aspect ratio that will be useful at both large and small sizes?