[R] Plot legend in margin

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Aug 10 13:00:23 CEST 2007



Daniel Brewer wrote:
> Hi all,
> Another plotting question I am afraid.  Is there anyway of putting a
> legend for a plot in a margin rather than within the figure.  I am
> trying to plot a 3x2 plot and I want to have:
> 1) One key along the bottom for all the plots
> 2) A label (a,b,c) for each plot (see previous emails)
> 
> Is there any websites etc. that explain this sort of thing?

Please read the posting guide.

After that, type:
   RSiteSearch("legend margin")

Currently, the fourth entry shows a solution:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/67979.html

Uwe Ligges


> Dan
>



More information about the R-help mailing list