Graphics Reference
In-Depth Information
Figure 2-1. Scatter plot with base graphics
With the ggplot2 package, you can get a similar result using qplot() ( Figure 2-2 ):
library(ggplot2)
qplot(mtcars$wt, mtcars$mpg)
Search WWH ::




Custom Search