How can i plot multiple line graphs into one? I have four separate datasets which all have the same x-axis (it is like time, i.e. all in order).
So the dataset looks like this
x y1 y2 y3 y4
12350 0.032 0.283 0.043 0.012
13200 0.234 0.229 0.934 0.002
15504 0.001 0.510 0.394. 0.294
17709 0.923 0.394 0.022 0.202
.
.
.
The problem is, what do I enter in ggplot? I can plot individual plots fine but not sure how to combine them. Adding the two plots below does not work, maybe I'm missing something really obvious...
ggplot(df, aes(x=x, y=y1)) + geom_line()
ggplot(df, aes(x=x, y=y2)) + geom_line()