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

13.2.5 Many Figures In One Subplot -- Would par(fig) would be worth mentioning? #13

Open
J-Moravec opened this issue Jan 10, 2024 · 1 comment

Comments

@J-Moravec
Copy link

In https://deepr.gagolewski.com/chapter/250-graphics.html#many-figures-on-one-page-subplots

par(mfrow) and par(mfcol) is shown in detail. layout() is mentioned as a more complex alternative.

But would par(fig) be worth mentioning as well? Personally, I prefer it for complex plots instead of layout() as it allows the most precise and user-defined division of plot into segments while being much simpler than layout(). It is also the least documented one, since neither mfrow/mfcol parts of par mention it nor layout(), and many R tutorials or even advanced books are perhaps not even aware par(fig) exists.

What par(fig) does is that it defines plotting region in user coordinates. So par(fig = c(0, 1, 0, 0.5)) would be the bottom half of the plotting area. Which, for me, is much easier to think about than how to construct matrix layout for layout().

@gagolews
Copy link
Owner

Oh, I forgot about this one, thanks!
I'll add it in the next release (some time later).

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