[R] Centering a legend

Erich Neuwirth erich.neuwirth at univie.ac.at
Mon May 7 19:44:55 CEST 2007


Using layout I am plotting 5 boxplots on top of each other,
all of them using colored boxes in different order.
In a 6th box below I want to give the legend explaining the box colors,
and I want this box to be centered in an otherwise empty plot.
I am creating this plot by
plot(0:1,0:1,type="n")

Is there an easy way to find the parameters x and y for calling legend
which will center the legend in this plot?



-- 
Erich Neuwirth, University of Vienna
Faculty of Computer Science
Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-39464 Fax: +43-1-4277-39459



More information about the R-help mailing list