-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functionality from patchwork
#61
Comments
I love patchwork and currently use it for an R package. I make use of the If/when this is implemented, I will look forward to porting over my R package. |
Do we also support |
We don’t, but we can! I never realized that was an operator in patchwork to be honest - is it exactly the same as + (which also puts plots side by side)? |
bar operator supported as of 1473747 |
Yes, same functionality as |
Been trying this out in Currently, it is missing the function |
That's the plan! Just need to add some more functions and I haven't gotten around to it yet If you want to give it a go, the GGPlotGrid |
With #95, we could now have: t = ggplot(penguins) +
geom_point(@aes(x = bill_length_mm, y = bill_depth_mm));
((t + t + t) | (t / t)) / t |
Working on t = ggplot(penguins) +
geom_point(@aes(x = bill_length_mm, y = bill_depth_mm));
t + t + t + plot_layout(;nrow=2, heights=[3,1], widths=[1,2]) and its working with combination of previous grids and plots as well: grid = (t + t + t) / t
grid + t + plot_layout(;nrow=2, heights=[1,2]) |
This is amazing progress @cnrrobertson - I see the PR is still marked as draft, just let me know when you think its ready to be merged |
Makie's grid layout system should allow implementation of a
patchwork
-like syntax for simple layouts. Initial implementation should include:Base.:+(plot1::GGPlot, plot2::GGPlot)
- returns a plot with plot1 and plot2 side by sideBase.:/(plot1::GGPlot, plot2::GGPlot)
- returns a plot with plot1 above plot2plot_layout
to modify relative proportionsThe text was updated successfully, but these errors were encountered: