On 02/10/2010 09:17 PM, khaz...@ceremade.dauphine.fr wrote:
Hello alla
I have three kinds of information (x,y1),(x,y2),(x,y3) such that x and
y1,y2,y3 are the vectors with the same dimention.
Now I want to plot these three class af information on one plot.
thank you for your help.
khazaei
Hi khazaei,
Try this:
matplot(x,cbind(y1,y2,y3),type="l")
text(rep(x,3),c(y1,y2,y3),rep(c("y1","y2","y3"),each=16),
col=rep(1:3,each=16))
Jim
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.