[R] Automatically placing legend in location of most whitespace.

Jim Lemon jim at bitwrit.com.au
Fri Jun 12 11:21:30 CEST 2009


Jason Rupert wrote:
> Just read the following:
> https://stat.ethz.ch/pipermail/r-help/2003-October/039940.html
>
> Is the labcurve function, really the putKey function, in the Hmisc package the best way the to go about automatically placing legend in location of most whitespace?
>
>   
Hi Jason,
I wasn't aware of the largest.empty function (thanks), and the code is 
packed away in a Fortran routine, so I couldn't compare it to the 
emptyspace function in the plotrix package. However, I suspect that 
largest.empty is a more sophisticated way of finding space for a legend.

Jim




More information about the R-help mailing list