Re: [R] function par(mfrow....)

From: Chuck Cleland <ccleland_at_optonline.net>
Date: Fri 08 Jul 2005 - 00:55:28 EST

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

______________________________________________
R-help@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
Received on Fri Jul 08 01:02:56 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:20 EST