On Wed, Mar 5, 2008 at 8:28 AM, Georg Otto <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to generate a figure of 9 plots that are contained in one > device by using > > par(mfrow = c(3,3,)) > > I would like to have 1 common legend for all 9 plots somewhere outside > of the plotting area (as opposed to one legend inside each of the 9 > plots, which the function legend() seems to generate by default).
If you provide more detail about your problem (what are the 9 plots?) I'm sure we can suggest other solutions using lattice or ggplot that will substantially simplify your code, as well as automatically drawing the legend. Hadley -- http://had.co.nz/ ______________________________________________ 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.