Re: [R] Plot legend in margin

2007-08-10 Thread Uwe Ligges
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

Re: [R] Plot legend in margin

2007-08-10 Thread Daniel Brewer
Thanks. That got me onto the right track. Because it is a multiplot and I wanted it along the bottom, I found that I had to use par(xpd=NA) and then position it relative to the last of the multiplots. After a bit of trial and error I got there. Thanks Lauri Nikkinen wrote: Very simple

[R] Plot legend in margin

2007-08-10 Thread Daniel Brewer
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

Re: [R] Plot legend in margin

2007-08-10 Thread Greg Snow
Brewer Sent: Friday, August 10, 2007 4:55 AM To: Lauri Nikkinen; r-help@stat.math.ethz.ch Subject: Re: [R] Plot legend in margin Thanks. That got me onto the right track. Because it is a multiplot and I wanted it along the bottom, I found that I had to use par(xpd=NA) and then position