[R] Automatic placement of Legends

Frank E Harrell Jr f.harrell at vanderbilt.edu
Wed Jul 9 13:03:06 CEST 2008


Jim Lemon wrote:
> On Tue, 2008-07-08 at 19:31 +0100, tolga.i.uzuner at jpmorgan.com wrote:
>> Dear R-Users,
>>
>> I am looking for a way to get legends placed automagically in an empty 
>> spot on a graph. Additional complication comes through my useage of 
>> multiple graphs on the same plot through mfrow. 
>>
>> Is there a way to achieve this in R ? I have legends for each of the 
>> sub-plots.
> Hi Tolga,
> Have a look at "emptyspace" in the plotrix package.
> 
> Jim

Also see the labcurve function in the Hmisc package.
Frank

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University



More information about the R-help mailing list