[R] Add a legend to a pairs plot??

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Jul 10 11:34:31 CEST 2003


Toby.Patterson at csiro.au wrote:

> All, 
> Can someone tell me if it is possible to add a legend to a plot produced
> with pairs()? 

It is possible, but it depends on where you want the legend(s) to be 
placed. One for each variable (argument diag.panel helps inthis case)? 
Just one for the whole pairs() plot (Divide the plot or just plot the 
lower triangle and use the upper for a legend, e.g.)?

Uwe Ligges


> I have an example akin to plotting the iris data given in the pairs help
> and would like to show what the symbols refer to somewhere. 
> 
> Thanks.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list