[R] (no subject)

kjetil brinchmann halvorsen kjetil at entelnet.bo
Fri Jan 31 19:00:09 CET 2003


On 30 Jan 2003 at 18:17, pavel koulikov wrote:

You should use a subject line. To put to lines on the same plot:

plot(x~y, type="l")
lines(z ~ v)

Kjetil Halvorsen


> Hi
> I have 4 vectors x,y,z,v
> I need 2 graphs (x~y,z~v) on the same plot. I mean two lines on the same plot - blue and red.
> I wrote:
>  
> c.pl=xyplot(y~x,
>           na.rm="TRUE",type="l",more=TRUE,
>           scales = list(cex=3/4,x=list(tick.number=3,alternating = c(0,1)),y=list(tick.number=7)),   
>           panel = function(x,y,...) {
>           panel.grid(h=-1,v=3,lwd=1/8,col=COLAVG,lty=3)
>           panel.xyplot(x,y,...)
> 
>         }
>    
>    )
> 
> How can I pu the second x~v graph on the same plot???
>    
>      
>    
> 
>   print(c.pl)
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list