On 03/11/2010 01:36 AM, t.wun...@stud.uni-heidelberg.de wrote:
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.
Hi Tom,
As Eik mentioned, you can use the emptyspace function. This works most
of the time, and there is also the locator function, used like this:
legend(locator(1),...)
allowing you to click where you want the legend to be placed.
Jim
______________________________________________
R-help@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.