-
-
Notifications
You must be signed in to change notification settings - Fork 91
Description
It would be really nice if StatsPlots could support faceting (i.e. making subplots by grouping by a variable in a table). I think it would make sense to use the seaborn syntax, e.g.
@df school density(:MAch, row = :Sx, col = :Sector)
to create four subplots laid out in a grid with subplot titles like "Sx = Girls, Sector = Catholic".
Easy construction of facets is in my opinion one of the two biggest things missing from the julia plotting ecosystem (as far as I know) when compared to Python (seaborn) and R (ggplot). (If you're curious, the other thing is a simple syntax for plotting summary statistics).
It seems to me that this would be a straightforward extension of the existing grouping machinery. But the fact that this hasn't been implemented already makes me think I must be missing some nuance that makes this tricky... I'd be happy to work on a pull request if this is something you'd be likely to accept.