[R] how to plot two graphics in one window

2007-06-15 Thread Miguel Caro

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.


Re: [R] how to plot two graphics in one window

2007-06-15 Thread John Kane
?points

x <- 1:10
plot(exp(x),col="red", type ="o")
points(sin(x), col="blue")


--- Miguel Caro <[EMAIL PROTECTED]> 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.
>

__
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.


Re: [R] how to plot two graphics in one window

2007-06-15 Thread Miguel Caro

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.

__
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.


Re: [R] how to plot two graphics in one window

2007-06-15 Thread Alex Tsoi
I hope this could help:

http://tolstoy.newcastle.edu.au/R/e2/help/07/02/11127.html

Alex-


On 6/15/07, Miguel Caro <[EMAIL PROTECTED]> 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]]

__
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.