Skip to content
Prev 256627 / 398506 Next

multiple lines on multiple plots

Or perhaps this as an example of using lines() rather than just getting a line and dot output in the upper graph.
  x <- 1:10
 y <- (1:100)*3
 z <- rnorm(100, 150, sd= 75)
 a <- rnorm(10,mean=5, sd= 2.5)
 par(mfcol=c(2,1))
 plot(x)
lines(a, col= "red")
plot(y)
lines(z , col="blue")
--- On Tue, 4/12/11, John Kane <jrkrideau at yahoo.ca> wrote: