[R] size of subplots with par() / layout()
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Sep 21 15:35:43 CEST 2005
On Wed, 21 Sep 2005, Robin Hankin wrote:
> If I do this:
>
> par(mfrow=c(2,2))
> persp(matrix(1:4,6,6),box=F,phi=33,theta=33)
> persp(matrix(1:4,6,6),box=F,phi=33,theta=33)
> persp(matrix(1:4,6,6),box=F,phi=33,theta=33)
> persp(matrix(1:4,6,6),box=F,phi=33,theta=33)
>
>
> (
> or indeed
>
> layout(matrix(1:4,2,2))
> persp . . . .
> )
>
>
> then the mesh plots look too small to me. How do I make them larger?
By reducing the size of the plot margins, which are taking up a lot of
the space and you are not using. Use par's mai or mar, and see `An
Introduction to R' to understand plot layouts.
The effect is seen with just a single version of your example.
--
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