Exercise

Connecting the dots

By default, R creates a scatterplot with each x,y pair indicated by an open circle. Now, if we want to connect the data points with a line, we could add a third argument: type = "l" (with l being short for line).

Instructions

100 XP

Adapt the plot to create a line plot instead of a dot plot.