Skip to content
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

Feature Request: rel_width/height on panel size #207

Open
hoemich opened this issue Nov 16, 2024 · 1 comment
Open

Feature Request: rel_width/height on panel size #207

hoemich opened this issue Nov 16, 2024 · 1 comment

Comments

@hoemich
Copy link

hoemich commented Nov 16, 2024

I desire to create a gird of plots with cowplot::plot_grid() in which the plots share the x-axis of the column and the y-axis of the row. I do that, by disabling the unwanted axis on the individual plots.
Now it is a pain to control the relative size of the plot areas, especially when I want to render it in various sizes.
Since the dimensions of the axis/tickmarks/labels are fixed, while the plot areas' size is flexible I need different relative sizes for the plots, depending on the rendering size.

Eventually, in tedious manual work, I try to anneal the optimal relative sizes for each column/row, for each of the required rendering dimensions.

It would be awesome, if instead I could just define relative widths of the plot areas.
I imagine either a parameter, to control whether the existing rel_width\height consider the whole plot size or just the panel size, or a second set o parameters rel_panel_width\height for which the usage is mutually exclusive to the rel_widht\height

@clauswilke
Copy link
Contributor

I think you should look into the patchwork package. It may be a better solution for your specific design problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants