[R] help on ploting various lines

Neuro LeSuperHéros neuro3000 at hotmail.com
Wed Jun 21 19:05:37 CEST 2006


Sorry, had two y2 in the min/max ylim

plot(x=x1,y=y1,type="l",ylim=c(min(y1,y2,y3),max(y1,y2,y3))) #fixed
lines(x=x2,y=y2)
lines(x=x3,y=y3)



>From: Baoqiang Cao <caobg at email.uc.edu>
>Reply-To: caobg at email.uc.edu
>To: R-help at stat.math.ethz.ch
>Subject: [R] help on ploting various lines
>Date: Wed, 21 Jun 2006 12:22:16 -0400 (EDT)
>
>Dear All,
>
>I tried to plot a variety of lines(curves) on same figure. What I did is,
>plot(x=x1,y=y1)
>lines(x=x2,y=y2)
>lines(x=x3,y=y3)
>...
>
>In my data, the maximum of y1 is much smaller than those maximums of other 
>y vectors. So, in the figure I got, there are some curves which are not 
>complete, I mean, they were cut off at the maximum of y1 at the y axis. 
>Could anybody point out some right commands I need use? Thanks!
>
>Best,
>  Cao
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! 
>http://www.R-project.org/posting-guide.html



More information about the R-help mailing list