We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Firefox.


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