Graphs in R
This chapter starts with comments on the graphical devices that are available in R, on font families and fonts, on plotting symbols, and on R’s color choices. It discusses the abilities in the lattice package in modest detail, with a more cursory discussion of the ggplot2 package.
15.1 Hardcopy graphics devices
The following writes the graph to the pdf file fossilfuel.pdf:
Other functions that open hardcopy graphics devices include png(), jpeg(), bmp(), and tiff(). Unless the default units="px" is changed, height and width are in ...