Graphics Reference
In-Depth Information
Figure 2-2. Scatter plot with qplot() from ggplot2
If the two vectors are already in the same data frame, you can use the following syntax:
qplot(wt, mpg, data = mtcars)
# This is equivalent to:
ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point()
Search WWH ::




Custom Search