One of the most appealing things about R is its ability to create data visualizations with just a couple of lines of code. For example, it takes just one line of code -- and a short one at that -- to plot two variables in a scatterplot. Let's use as an example the mtcars data set installed with R by default. To plot the engine displacement column disp on the x axis and MPG on y: plot(mtcars$disp, mtcars$mpg)