3 ms·
ggsave (and most R graphics devices) supports .pdf and .svg output. I remember reading an article about prerendering plots in ggplot2 then exporting into Illust
by minimaxir 12y ago
ggsave (and most R graphics devices) supports .pdf and .svg output. I remember reading an article about prerendering plots in ggplot2 then exporting into Illustrator for more professional touch ups.
Note that if you want to include custom fonts with those outputs, it gets really complicated.
- semi-extrinsic 12y agoI've had good success with .svg from ggplot2. The only issue I've seen is that the legend for continuous color maps is glitchy. Especially if you try to touch up the plot in Inkscape.
- hudibras 12y agoHere's a couple articles on touch-ups that I've hoarded. (Thanks, Pinboard!) http://www.vikparuchuri.com/blog/making-infographics-using-r-and-inkscape/ http://www.vikparuchuri.com/blog/making-infographics-using-r... http://rforwork.info/2012/04/12/fun-editing-r-graphs-in-inkscape/ http://rforwork.info/2012/04/12/fun-editing-r-graphs-in-inks...
- minimaxir 12y agoI haven't played around with Inkscape, but I'll definitely be taking a look now!
- jszymborski 12y agoNow that's clever!!!
- dewarrn1 12y agoDecent references. I find myself doing similar, final-draft touch-ups with plots for manuscripts.