grantmcdermott / tinyplot

Lightweight extension of the base R graphics system
https://grantmcdermott.com/tinyplot
Apache License 2.0
235 stars 7 forks source link

`facet` free y and x scales #189

Open vincentarelbundock opened 3 months ago

vincentarelbundock commented 3 months ago

In plots like this one, it is sometimes useful to set different xlim or ylim on a per-facet basis. Is this possible now? Would it be hard to implement?

i2_histogram_subfield

grantmcdermott commented 3 months ago

It's possible, see here: https://github.com/grantmcdermott/tinyplot/issues/90#issuecomment-1987027670

I was reluctant to do this originally (for reasons detailed at the link), but have encountered a few cases myself where free axis scaling for facets would be useful. So I'm open to revisiting.

vincentarelbundock commented 3 months ago

Cool cool. I'll think about this when I'm back at work.