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

Could not paste the plot generated using ggbreak into another document in Adobe illustrator #16

Open
dawnmy opened this issue Jul 3, 2021 · 1 comment

Comments

@dawnmy
Copy link

dawnmy commented Jul 3, 2021

I created a bar plot file in PDF format using ggplot2 and ggbreak, but I could not copy and paste it in another document in Adobe illustrator (AI) because I was getting this error message:

can't paste object. the requested transformation would make some objects too large

I checked the layers of the plot in AI, and noticed that there were some clip groups and the bars outside of the clip paths are very long (looks like the same length as the original length without using ggbreak). I was wondering if there is a way to fix this issue either in ggbreak or in AI?

@alexfriman
Copy link

Try saving the plot the using Cairo_pdf:
ggsave(filename = "tmp.pdf", path = "~/tmp/", width = 8, height = 4, units = "in", plot = myGGplotObject,device = cairo_pdf)

May require extra software for MacOS.

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