On 08/01/2011 04:52 AM, Cheryl Johnson wrote:
Hello,
I have two plots on the same screen. I use the command par(mfrow=c(1,2)) in
order to do this. When I try to make a legend for both plots, it only puts
the legend in the plot on the right side. If I would like a legend that is
outside of both of the plots, how would I do this?
Hi Cheryl,
You probably want to use par(xpd=TRUE) to allow displaying the legend
outside the plot areas. Look at the color.legend (plotrix) function to
see how it's done.
Jim
______________________________________________
[email protected] 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.