I am trying to save plot which I generated using ggplot in R. I saved with .jpeg, .pdf, .png formats. But none of them look good when I try to resize it for putting it on a presentation slide. Could someone suggest what is the best format to save those plots in order to look good on slides?
The pdf and postscript option yields files that you can additionally edit in Illustrator, whereas tiff gives a high-res image file that”s much better than typical jpegs or png files. These commands won’t show the plots, but will save them directly to the file specified.
I’m late for the party, but I use and suggest another approach.
This command will plot the last plot you made. As I am using Jupyter notebook/lab it’s very handy when you just find the perfect combination of width and heigh with the command options(repr.plot.width = 12, repr.plot.height = 6)
I used to use the pdf() + dev.off() set, but the thing is that you save running time with the notebooks using this single-line approach.