[R] Scaling points in legends

Kevin Ceder thuja at silvae.cfr.washington.edu
Wed Apr 16 05:13:36 CEST 2003


I need to scale points in a legend of a graph.  The cex argument in the 
legend functions scales the whole legend, not just the point.  Here's the 
solution I came up with:

Add argument cex.point=1 to the legend function ( line 13250 of base, R 
version 1.6.2 ) then change cex=cex argument where points2 is called at 
line 13416 to cex=cex.point.

This allows me to scale the point on my machine but the script won't be 
usable to others unless the modify their copy of base.  Any ideas for a 
'cleaner' or more portable fix?

Cheers,

Kevin Ceder

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Forest Technology Specialist
Rural Technology Initiative
University of Washington
thuja at u.washington.edu
206.543.0827



More information about the R-help mailing list