ggbreak
ggbreak copied to clipboard
Could not paste the plot generated using ggbreak into another document in Adobe illustrator
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?
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.