[R] Placing the legend 'dynamically'

Eik Vettorazzi E.Vettorazzi at uke.uni-hamburg.de
Wed Mar 10 15:46:09 CET 2010


Hi tom,
have a look at the emptyspace-function from the plotrix package. Looks 
like it does what you want?!

Hth.

T.Wunder at stud.uni-heidelberg.de schrieb:
> Hello,
>
> does anybody know which command to consider when I'm trying to plot a 
> stacked barplot with a legend at the most empty portion of the graphic?
> I've searched for it, and somebody stated to use the labcurve-command, 
> but I don't know how to produce stacked barplots with it.
> Is there any possibility to plot a legend box "dynamically" (= in an 
> empty region) with the legend()-command?
> That would be helpful, because I'm already using this one.
>
> Thank you,
>
> Kind regards, Tom
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Eik Vettorazzi
Institut für Medizinische Biometrie und Epidemiologie
Universitätsklinikum Hamburg-Eppendorf

Martinistr. 52
20246 Hamburg

T ++49/40/7410-58243
F ++49/40/7410-57790



More information about the R-help mailing list