Create a line graph with ggplot

Use the geom_line() aesthetic to draw line graphs and customize its styling using the color parameter. Specify which coordinates to use for each line with the group parameter.

  • Create your first line graph using geom_line()
  • Define how different lines are connected using the group parameter
  • Change the line color of a line graph using the color parameter
ggplot(___) + 
    mapping = aes(x = ___, y = ___, 
                  group = ___, 
                  color = ___)
View Interactive Version