If you鈥檙e not familiar with the geom_line() function, you should probably he a look to the most basic line chart first.
Here, the input data frame is composed by 3 columns:
An ordered numeric variable for the X axis Another numeric variable for the Y axis A categorical variable that specify the group of the observationThe idea is to draw one line per group. This is doable by specifying a different color to each group with the color argument of ggplot2.