Use the following series of code to see the syntax of how a ggplot is built in different layers.

ggplot [1]:

ggplot [2]:

ggplot [3]:

ggplot [4]:

ggplot [5]:

ggplot [6]:

ggplot [7]:

ggplot [8]:

ggplot [9]:

ggplot [10]:

ggplot [11]: