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

ggsave append new pages to pdf #5303

Closed
wbvguo opened this issue May 10, 2023 · 1 comment
Closed

ggsave append new pages to pdf #5303

wbvguo opened this issue May 10, 2023 · 1 comment

Comments

@wbvguo
Copy link

wbvguo commented May 10, 2023

Hi,

I want to use ggsave to save multiple plots into a single pdf file (a plot per page, and the size of each plot can be adjusted individually). Currently, ggsave don't allow appending new pages, instead, it will overwrite if the file already exists. Is it possible to add an option append=TRUE/FALSE to ggsave when the device is set to be "pdf"?

For example:

ggsave(filename = "test.pdf", plot = p1, device = "pdf", width = 8, height = 6)
ggsave(filename = "test.pdf", plot = p2, device = "pdf", width = 10, height = 10, append= TRUE)

Thanks,

@teunbrand
Copy link
Collaborator

Hi Wenbin,

It seems people agree with you: there is already a feature request to saved to paged pdf in #5093.
We'd like to keep all discussion in a single place, so I'm gonna close this issue, and we can continue discussion over there.

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