[R] how to make multiple curves in one plot

karena dr.jzhou at gmail.com
Tue Nov 2 04:34:20 CET 2010


hello, 

plot(running(-log10(results_chr_p$empi_p), fun=mean, width=41, font.axis=4,
by=1),type="l",cex=0.1, ylab="-Log(p)", ylim=c(0,5.0), xlab=" ", lwd=2)


this is my code to make a plot. The problem is, now I want to add one more
curve to the plot, which is for another variable in the data.frame
-log10(results_chr_p$p). My question is: how to make multiple lines in one
plot, especially when using the 'running' function in it??

thank you very much,

karena
-- 
View this message in context: http://r.789695.n4.nabble.com/how-to-make-multiple-curves-in-one-plot-tp3023135p3023135.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list