Is their any process to improve jagged lines produced by geom_line() joining multiple points into smooth presentable lines in ggplot2?
lai.se <- structu
As others have mentioned, a vector-based image format like PDF or SVG might be the best way to go. If you want to use a bitmap, like PNG, then you can increase the resolution of your image with the res
option of png()
.
png("myplot.png", width = 1800, height = 1800, res = 600)
This will produce a 3 inch by 3 inch image (in real-world dimensions) at 600 dpi. In my experience, the file size was still reasonable for relatively simple graphs.
See this blog post for more ideas on how to improve your images:
http://blog.revolutionanalytics.com/2009/01/10-tips-for-making-your-r-graphics-look-their-best.html