[R] pairs plot and legend

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Sep 17 14:58:10 CEST 2004


Sean Davis wrote:

> I would like to add a legend to a pairs plot.  Is there a simple way to 
> do this?  Just doing legend(.....) doesn't seem to get it.


For sure you have specified wrong x,y values.
See par("usr") for the range or try it interactively using:

legend(locator(1), ......)

Uwe Ligges



> Thanks,
> Sean
> 
> ______________________________________________
> 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




More information about the R-help mailing list