[R] layer plots.

R. Michael Weylandt michael.weylandt at gmail.com
Fri Mar 9 16:51:34 CET 2012


No idea what table1, table2 are....

plot(1:5, type = "l")
points(5:1, col = 2)

should get you started.

Michael

On Fri, Mar 9, 2012 at 10:17 AM, aaral singh <aaral.singh at gmail.com> wrote:
> Hello.
>
> I have 2 plots.
>
>> plot1 <-plot(table1)
>> plot2 <-plot(table2)
>
> How may i plot these both on the same graph, i.e. layer one graph on top of
> the other one.
> The result should look similar to this the image below, where the black
> lines indicate one plot, and the red dots indicate the second plot.
>
> http://r.789695.n4.nabble.com/file/n4459732/R_screen_shot.png
>
> Aaral.
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/layer-plots-tp4459732p4459732.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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