8 An Introduction to Plots

Reminders: R is picky in its notation; you need to distinguish between upper/lower case. There are many ways of doing the same thing in R.

Type the code provided below in a R script to see the results. Typing is better than copying the code, as you might make a mistake in typing that allows you to learn how to debug your coding.

Plots are a useful way of visually communicating the results of an analysis. The following illustrates how to create basic plots with R and to annotate the plot with a title and legend.

Check out the LinkedIn Learning videos on Learning R for more on creating plots.