3 ms·
Great, I was introduced to ggplot2 via your note in the footer in articles you've shared in the past. This helps a great deal. Thanks Max! :) ps: Is there a wa
by tariqr 12y ago
Great, I was introduced to ggplot2 via your note in the footer in articles you've shared in the past. This helps a great deal. Thanks Max! :)
ps: Is there a way to generate vector outputs?
- minimaxir 12y agoggsave (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.
- dewarrn1 12y agoR has a built-in Cairo-based SVG output device that allows you to write out any plot in a vector format: http://www.inside-r.org/r-doc/grDevices/cairo http://www.inside-r.org/r-doc/grDevices/cairo. It's great for publication-quality plotting.