[R] how to plot two graphics in one window

John Kane jrkrideau at yahoo.ca
Fri Jun 15 21:31:39 CEST 2007


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



More information about the R-help mailing list