Skip to content

size of subplots with par() / layout()

4 messages · robin hankin, Brian Ripley, Dieter Menne +1 more

#
Hi

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?



--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
  tel  023-8059-7743
#
On Wed, 21 Sep 2005, Robin Hankin wrote:

            
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.
#
Robin Hankin <r.hankin <at> noc.soton.ac.uk> writes:
...
Try 

par(mfrow=c(2,2),mar=c(0,0,0,0)) 

Dieter
#
Robin Hankin wrote:

            
Insert:
  par(mar=rep(0,4))

Uwe Ligges