I am new to R and am struggling to understand how to create a matrix line plot (or plot with line subplots) given a data set with let's say one x and 5 y-columns such that: -the first subplot is a plot of variables 1 and 2 (function of x) -the second subplot variables 1 and 3 and so on The idea is to use one of the variables (in this example number 1) as a reference and pair it with the rest so that they can be easily compared.
Thank you very much for your help.