[R] function par(mfrow....)
Chuck Cleland
ccleland at optonline.net
Thu Jul 7 16:55:28 CEST 2005
Navarre Sabine wrote:
> Hi,
>
> I have made 3 barplots differents in the some window plot with the function par(mfrow....),
> but is it possible to give different dimension to this 3 parts.
> for example, I want the first part smaller than the others.
> ...
Here is one approach using split.screen() :
split.screen(fig = rbind(c(0, 0.25, 0.25, 0.75),
c(0.25, 0.625, 0, 1), c(0.625, 1, 0, 1)))
screen(1)
barplot(runif(5), main="Smaller")
screen(2)
barplot(runif(8), main="Bigger")
screen(3)
barplot(runif(8), main="Bigger")
close.screen(all=T)
--
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 452-1424 (M, W, F)
fax: (917) 438-0894
More information about the R-help
mailing list