Skip to content
Prev 59901 / 398502 Next

plotting multiple series in one plot

Hi Zack,

you mean something like:

matplot(x$a, as.matrix(cbind(x$b, y$b)), lty=1:2, type="l")
legend(1, 2.5, c("b.x", "b.y"), lty=1:2, col=1:2)


I hope it helps.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.be/biostat
     http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm


----- Original Message ----- 
From: "Apoian, Zack" <Zack.Apoian at sac.com>
To: "'R-help at lists.R-project.org'" <R-help at stat.math.ethz.ch>
Sent: Friday, November 26, 2004 3:34 PM
Subject: [R] plotting multiple series in one plot