[R] I have an array of plots and I would like to put a title on the whole array.
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Aug 5 05:47:41 CEST 2008
par(mfrow=c(2,4), oma=c(0,0,1,0))
plots ...
title("Big Array", outer=TRUE)
You need to set up an outer margin. See 'An Introduction to R' for that
topic.
You probably want to reset the margins (mar=) for such a large array of
plots.
On Mon, 4 Aug 2008, Arthur Roberts wrote:
> Hi, all,
>
> Does anyone know of a way to get a title on an array of plots? I have tried
> to use title, mtext, and text to get the title on the array, but to no avail.
> I would like something like the following.
>
>
> title("Big Array")
> par(mfrow=c(2,4))
> plot(x1,y1)
> plot(x2,y2)
> ..
> ..
> ..
>
> Much appreciated,
> Art
>
> ______________________________________________
> R-help at 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.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list