Suppose I have 3 age groups: Infants, Adults and Elderly. In each group, I have 3 subjects. For each age group, I'm plotting a combined line plot:
p1 <- plot(infants$`8838`, type="l", col="blue", ylim = c(0, 0.90), xlim = c(0,3000))
lines(infants$`9048`, typr = "l", col="red")
lines(infants$`9108`, typr = "l", col="green")
p2 <- plot(adol$`8804`, type="l", col="blue", ylim = c(0, 0.90), xlim = c(0,3000))
lines(adol$`12291`, typr = "l", col="red")
lines(adol$`12623`, typr = "l", col="green")
p3 <- plot(old$`10341`, type="l", col="blue", ylim = c(0, 0.90), xlim = c(0,3000))
lines(old$`10690`, typr = "l", col="red")
lines(old$`10896`, typr = "l", col="green")
Now I need to combine all that three plots in one graph. Could anyone please help me find an answer?
Thanks in advance!