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. I have attached my plot! thanks Sabine ---------------------------------
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
Hi, Is layout the function you will need? ?layout E.g.: l <- matrix(c(rep(1,4), rep(2,8),rep(3,8)), ncol=5) layout(l) layout.show(3) plot(1,1) plot(1:25,pch=1:25) plot(2,5) Best regards, Matthias> > 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. > > I have attached my plot! > > thanks > > Sabine > > > > --------------------------------- > >