Re: [R] (no subject)

About this list Date view Thread view Subject view Author view Attachment view

From: Andrew C. Ward (s195404@student.uq.edu.au)
Date: Fri 31 Jan 2003 - 12:54:14 EST


Message-id: <1043978054.3e39d746e1b03@my.uq.edu.au>

For this application, you need something like
   plot(dat$x, dat$y, type="n", xlim=range(c(dat$x, dat$z)),
        ylim=range(c(dat$4, dat$v)))
   points(dat$x, dat$y, col="red")
   points(dat$z, dat$y, col="blue")

Similarly, you can use lines() along with lowess() to put
different coloured lines on the plot.

Regards,

Andrew C. Ward

CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
andreww@cheque.uq.edu.au

Quoting pavel koulikov <pavel@koulikov.com>:

> 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@stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:20 EST