Subject: Re: [R] 2 plots 1 figure
From: Meriema Belaidouni (meriema@info.univ-angers.fr)
Date: Wed 15 Nov 2000 - 02:22:48 EST
Message-ID: <3A1166D7.480B84D0@info.univ-angers.fr>
In fact my question is more general perhaps this example is better
x and y are some variables
hist(x)
hist(y)
my question is how one can get both histograms in the same figure so that they can
cross each others.
This command exist under matlab it is hold on.
Torsten Hothorn a écrit:
> On Tue, 14 Nov 2000, Meriema Belaidouni wrote:
>
> > How do you obtain two plots on the same figure?
> > for example
> > plot(rnorm(100)
> > plot(rnorm(100),type="l")
>
> Does
>
> x <- rnorm(100)
> plot(x)
> lines(x) # or/and ...
> points(x, pch=5)
>
> do what you want?
>
> Torsten
>
> >
> > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > 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@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2b25 : Thu 01 Feb 2001 - 16:14:32 EST