Hi, I successfully created 3 screens with the following:
fig.mat<-c(0,.5,.5,.5,1,1,0,0,.5,1,.5,1) fig.mat<-matrix(fig.mat,nrow=3) fig.mat split.screen(fig.mat) I can plot three different plots on those 3 screens, but when I try the following: (Trying to create three graphs with a common x-axis but different y-axis on screen 1) screen(1) par(oma=c(3,3,0,0)) par(fig=c(0,1,0,0.33)) par(mar=c(0,2,0,0.2)) plot(x,y,ylab="juveniles",type="b") par(fig=c(0,1,0.33,0.66),new=T) par(mar=c(0,2,0,0.2)) plot(x,y,ylab="males",type="l",xaxt="n") par(fig=c(0,1,0.66,0.99),new=T) par(mar=c(0,2,0.2,0.2)) plot(x,y,ylab="females",type="p",xaxt="n") title(xlab="class",ylab="frequency",outer=T) Screen 1 seems to expand over the whole plotting device instead of being restricted to only the region appointed to Screen 1. Changing "fig=c(0,1,0,0.33)" to " fig=c(0,0.5,0,0.33)" gives me the result I was looking for. Why do I have to use "fig" in respect to the original plotting device and not in respect to the new one (screen1) ? I thought the use of split.screen() gives the advantage of having three regions that are treated as separate plotting devices, so that my original code should work. But I guess that I got it wrong ?!? Thanks for explanations! /Birte [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.