The 3 major plotting system in R is Base Plotting system Lattice Plotting system ggplot2 system Base: “artist’s palette” model Lattice: Entire plot specified by one function; conditioning ggplot2: Mixes elements of Base and Lattice Drawbacks of base plotting system: Can’t go back once plot has started (i.e. to adjust margins); need to plan in advance Difficult to “translate” to others once a new plot has been created (no graphical “language”) Example of a simple base plot:

1 2 3 4 5 | <em><strong>library(datasets)</strong></em> <em><strong>data(cars)</strong></em> <em><strong>with(cars, plot(speed, dist))</strong></em> |

Advantages of the lattice system: Plots are created with a single…