[R] How do I plot multiple XY plots on the same graph

Carlos J. Gil Bellosta cgb at datanalytics.com
Thu Jan 1 13:27:04 CET 2009


Hello,

You can use plot for the first plot and points for the subsequent ones.

Points will add new points to the existing plot reusing the axes,
labels, etc.

Best regards,

Carlos J. Gil Bellosta
http://www.datanalytics.com


On Wed, 2008-12-31 at 15:36 -0800, George Chen wrote:
> Hello,
> I have multiple data sets I would like to plot on the same XY scatterplot.
> The data sets have in common the same Y values.
> Could somebody tell me how to do this?
> I tried par(T=new)   (I think this was it) but it literally overlays plots on each other.
> 
> Thanks in advance.
> 
> George
> 
> ______________________________________________
> 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