Scatter plots

The following code will be used to create a scatter plot:

plot(Hartnagel$year, Hartnagel$mtheft, col=brewer.pal(8,"Set1")) 

The output is as follows:

To view the various parameters supported in R graphics:

?par 

Get Hands-On Data Science with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.