[R] help me
Warnes, Gregory R
gregory_r_warnes at groton.pfizer.com
Tue Oct 16 16:12:50 CEST 2001
Perhaps Davide wants to put two plots side by side, rather than
superimposed.
In this case the necessary commands are,
par(mfrow=c(1,2)) # 1 row and 2 columns
qqnorm(y1)
qqline(y1)
qqnorm(y2)
qqline(y2)
par(mfrow=c(1,1)) # switch back to 1 plot
-Greg
> -----Original Message-----
> From: Achim Zeileis [mailto:zeileis at ci.tuwien.ac.at]
> Sent: Tuesday, October 16, 2001 5:57 AM
> To: d.tarfanelli at libero.it
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] help me
>
>
> "d.tarfanelli at libero.it" wrote:
> >
> > Hy,
> > I have dowloaded the R-version for Windows.
> > I would want to plot different pictures on the same
> device, but I am not
> > able to do it (i.e I would like make 2 qqplot on the same
> graphic).
> > Can you help me?
>
> You can use points() like in the following example.
> Z
>
>
> y <- rt(200, df = 5)
> y.q <- qqnorm(y, plot.it=FALSE)
> z <- rnorm(200)
> z.q <- qqnorm(z, plot.it=FALSE)
> plot(y.q)
> points(z.q, col=2)
>
>
>
>
> > Thanks in advance
> > Davide
> >
> > reply to: d.tarfanelli at libero.it
> >
> >
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-.-.-.-
> > r-help mailing list -- Read
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> > Send "info", "help", or "[un]subscribe"
> > (in the "body", not the subject !) To:
> r-help-request at stat.math.ethz.ch
> >
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._._._._._._._._
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To:
> r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._._._._._._._._
>
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list