See also the RStudio cheat sheet: How big is your graph?
png pdf pdf pdf 2 3 4 5
jpeg() are functions that open a graphics file of the corresponding type. See
?device for more.
Cairo() has a
dpi option for choosing the graphics resolution in the output file. Option
type chooses the type of the graphics file.