I am constructing plots ( regular not lattice ) and my initial command is par(mar=c(3,4,2,2), mfcol=c(5,2)) and then I create 10 plots on the page. It looks great but the plots on the page go in the order 1 6 2 7 3 8 4 9 5 10 Where the numbers denote decile breakdowns. Is there an easy way to make them go from left to right so 1 2 3 4 5 6 7 8 9 10 I could try to stay with the first way and reorder the deciles but that would be tricky and beyond my current knowledge base. Thanks. -------------------------------------------------------- This is not an offer (or solicitation of an offer) to bu...{{dropped:22}}
Have you looked at layout() ? Hadley On 10/12/07, Leeds, Mark (IED) <Mark.Leeds at morganstanley.com> wrote:> I am constructing plots ( regular not lattice ) and my initial command > is > > par(mar=c(3,4,2,2), mfcol=c(5,2)) > > and then I create 10 plots on the page. It looks great but the plots on > the page go in the order > > 1 6 > 2 7 > 3 8 > 4 9 > 5 10 > > Where the numbers denote decile breakdowns. > > Is there an easy way to make them go from left to right so > > 1 2 > 3 4 > 5 6 > 7 8 > 9 10 > > I could try to stay with the first way and reorder the deciles but that > would be tricky and beyond > my current knowledge base. Thanks. > -------------------------------------------------------- > > This is not an offer (or solicitation of an offer) to bu...{{dropped:22}} > > ______________________________________________ > R-help at 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. >-- http://had.co.nz/
Try par(mar=c(3,4,2,2), mfrow=c(5,2)) On 10/12/07, Leeds, Mark (IED) <Mark.Leeds at morganstanley.com> wrote:> I am constructing plots ( regular not lattice ) and my initial command > is > > par(mar=c(3,4,2,2), mfcol=c(5,2)) > > and then I create 10 plots on the page. It looks great but the plots on > the page go in the order > > 1 6 > 2 7 > 3 8 > 4 9 > 5 10 > > Where the numbers denote decile breakdowns. > > Is there an easy way to make them go from left to right so > > 1 2 > 3 4 > 5 6 > 7 8 > 9 10 > > I could try to stay with the first way and reorder the deciles but that > would be tricky and beyond > my current knowledge base. Thanks. > -------------------------------------------------------- > > This is not an offer (or solicitation of an offer) to bu...{{dropped:22}} > > ______________________________________________ > R-help at 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. >