library(ggplot2)
The first function you might start with is qplot, short for quick plot. It behaves similarly to the base plot function, but it provides many more options.
qplot(displ, cyl, data = mpg)
qplot(displ, data = mpg, binwidth = 1)