Load ggplot2

library(ggplot2)

Scatterplot

qplot(displ, hwy, data = mpg, colour = class)

plot of chunk unnamed-chunk-2

Coloured points

qplot(displ, hwy, data = mpg)

plot of chunk unnamed-chunk-3