Hello , Maybe this question you answered before, but i couldnt find something indicated in the mailing list. I wish to plot two graphics in one window, for example y=sinx and y=exp(x) in the same windows, (the same interval for x). Thanks . Miguel. -- View this message in context: http://www.nabble.com/how-to-plot-two-graphics-in-one-window-tf3929594.html#a11145186 Sent from the R help mailing list archive at Nabble.com.
?points x <- 1:10 plot(exp(x),col="red", type ="o") points(sin(x), col="blue") --- Miguel Caro <mcaro72 at gmail.com> wrote:> > Hello , > Maybe this question you answered before, but i > couldnt find something > indicated in the mailing list. > > I wish to plot two graphics in one window, for > example y=sinx and y=exp(x) > in the same windows, (the same interval for x). > > Thanks . > > Miguel. > -- > View this message in context: >http://www.nabble.com/how-to-plot-two-graphics-in-one-window-tf3929594.html#a11145186> Sent from the R help mailing list archive at > Nabble.com. > > ______________________________________________ > 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 > and provide commented, minimal, self-contained, > reproducible code. >
I hope this could help: http://tolstoy.newcastle.edu.au/R/e2/help/07/02/11127.html Alex- On 6/15/07, Miguel Caro <mcaro72@gmail.com> wrote:> > > Hello , > Maybe this question you answered before, but i couldnt find something > indicated in the mailing list. > > I wish to plot two graphics in one window, for example y=sinx and > y=exp(x) > in the same windows, (the same interval for x). > > Thanks . > > Miguel. > -- > View this message in context: > http://www.nabble.com/how-to-plot-two-graphics-in-one-window-tf3929594.html#a11145186 > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@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 > and provide commented, minimal, self-contained, reproducible code. >-- Medical University of South Carolina [[alternative HTML version deleted]]
Hi, I answer myself plot(x,y,type="l") par(new=TRUE) plot(x,yy,type="l") Thanks all! Miguel Caro wrote:> > Hello , > Maybe this question you answered before, but i couldnt find something > indicated in the mailing list. > > I wish to plot two graphics in one window, for example y=sinx and > y=exp(x) in the same windows, (the same interval for x). > > Thanks . > > Miguel. >-- View this message in context: http://www.nabble.com/how-to-plot-two-graphics-in-one-window-tf3929594.html#a11146479 Sent from the R help mailing list archive at Nabble.com.