[R] par(mfror=c(1,2))
Greg Snow
Greg.Snow at intermountainmail.org
Mon May 1 18:35:13 CEST 2006
One simple solution is to use the layout function in place of par.
For example:
> layout(rbind(c(0,1,1,0),c(0,2,2,0)))
> hist(rnorm(100))
> hist(rnorm(10000))
Hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Stefan Semmeling
Sent: Friday, April 28, 2006 2:08 AM
To: r-help at stat.math.ethz.ch
Subject: [R] par(mfror=c(1,2))
Sensitivity: Personal
dear list,
i have a problem using the par function.
in one graphic device i want to have two plots so i tried to use par(mfror=c(1,2)).
of course it worked out, but the height now is twice the length of the width for each single plot.
what i actually wanted is something like par(mfrow=c(2,2)) where only the top (or bottom) two plots are drawn with entire length proportions of 1 to 2 ( height 1, width 2) i want to create a pdf figure and can´t figure out how that might work.
(e.g. the height should be 8 cm, the length 16 cm but each plot should have the proportion 1:1(height:width))
thanks for any help.
stefan
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list