I wanted to produce a layout like this: |----------| | | | 1 | | | |-----------------------| | | | | 2 | 3 | | | | |-----------------------| Three equal sized plots with the top one centred about the other two. So far I am using nf<-layout(matrix(c(1,1,2,3), 2, 2, byrow=TRUE),respect=TRUE) which produces a layout like this: |-----------------------| | | | 1 | | | |-----------------------| | | | | 2 | 3 | | | | |-----------------------| The top plot is stretched horizontally. Is there a way to get what I want with layout or by some other means? Thanks for any help. Bill -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I ran into this before. You need to define smaller boxes: 4 1 1 5 2 2 3 3 (sorry not to put in the lines to make everythin look nice). To be more explicit, you're using layout(rbind(c(4,1,1,5), c(2,2,3,3))), but then making only 3 plots. Hope this helps, Matt On Mon, 18 Sep 2000, Bill Simpson wrote:> I wanted to produce a layout like this: > > |----------| > | | > | 1 | > | | > |-----------------------| > | | | > | 2 | 3 | > | | | > |-----------------------| > Three equal sized plots with the top one centred about the other two. > > So far I am using > nf<-layout(matrix(c(1,1,2,3), 2, 2, byrow=TRUE),respect=TRUE) > which produces a layout like this: > > |-----------------------| > | | > | 1 | > | | > |-----------------------| > | | | > | 2 | 3 | > | | | > |-----------------------| > > The top plot is stretched horizontally. > > Is there a way to get what I want with layout or by some other means? > Thanks for any help. > > Bill > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 18 Sep 2000 12:55:28 +0100 (BST) Bill Simpson <wsi at gcal.ac.uk> wrote:> I wanted to produce a layout like this: > > |----------| > | | > | 1 | > | | > |-----------------------| > | | | > | 2 | 3 | > | | | > |-----------------------| > Three equal sized plots with the top one centred about the other two.You may want to use this: nf <- layout(matrix(c(0,1,1,0,2,2,3,3),4,2,byrow=T),respect=T) Zoltan Barta -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thanks very much Matt. That did the trick. Bill -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thanks Zoltan for your help.> You may want to use this: > > nf <- layout(matrix(c(0,1,1,0,2,2,3,3),4,2,byrow=T),respect=T)I tried this however and it gave 3 plots centred one above another. Not what I wanted. (Also the bottom two had wrong aspect ratio: longer than wide) Bill -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
At 12:55 18/09/00 +0100, you wrote:>I wanted to produce a layout like this: > > |----------| > | | > | 1 | > | | >|-----------------------| >| | | >| 2 | 3 | >| | | >|-----------------------| >Three equal sized plots with the top one centred about the other two. > >So far I am using >nf<-layout(matrix(c(1,1,2,3), 2, 2, byrow=TRUE),respect=TRUE) >which produces a layout like this: > >|-----------------------| >| | >| 1 | >| | >|-----------------------| >| | | >| 2 | 3 | >| | | >|-----------------------| > >The top plot is stretched horizontally. > >Is there a way to get what I want with layout or by some other means? >Thanks for any help. > >Bill >Hi, You can play with the mar graphical parameter. For instance, layout(matrix(c(1,1,2,3), 2, 2, byrow=TRUE),respect=TRUE) par(mar=c(5.1, 12.1, 1.4, 10.1)) plot(rnorm(10)) par(mar=c(5.1, 4.1, 1.4, 2.1)) plot(rnorm(10)) plot(rnorm(10)) makes three plots roughly similar in size. Emmanuel Paradis -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._