ggbreak icon indicating copy to clipboard operation
ggbreak copied to clipboard

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

Open dawnmy opened this issue 3 years ago • 1 comments

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?

dawnmy avatar Jul 03 '21 10:07 dawnmy

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.

alexfriman avatar Aug 06 '23 19:08 alexfriman