My data is an imported excel file where the first column is the sample time and is the 'x-axis' and the remaining columns are the measurement. They are the same measurements but taken from different subjects.
A snapshot of how the data looks is below:
I can stack them up on ggplot manually using:
ggplot(P2ROKI, aes(x=P2ROKI$Time))+
geom_point(aes(y=P2ROKI$P1, colour="P1"))+
geom_point(aes(y=P2ROKI$P6, colour="P6")) +
geom_smooth(aes(y=P2ROKI$P1, colour="P1")) +
geom_smooth(aes(y=P2ROKI$P6, colour="P6"))
However I wondered if there was a simpler way where I could do it in one go?