[R] par(mfrow=c(3,4)) problem

Martin Maechler m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Wed May 30 11:46:08 CEST 2018


>>>>> Sarah Goslee 
>>>>>     on Wed, 30 May 2018 05:03:56 -0400 writes:

    > Hi,
    > You're mixing base plot and ggplot2 grid graphics, which as you've
    > discovered doesn't work.

    > Here's av strategy that does:
    > https://cran.r-project.org/web/packages/egg/vignettes/Ecosystem.html

    > This vignette has a good overview, well as info specific to that package.

    > Sarah

A very nice vignette indeed!  Didn't know about these.
Thank you, Sarah, and thanks to the author, Baptiste Auguie !

Martin 

    > On Wed, May 30, 2018 at 4:43 AM greg holly <mak.hholly using gmail.com> wrote:

    >> Hi all;
    >> 
    >> I need to put 12 different plot2 into the same matrix. So my array for the
    >> matrix will be par(mfrow=c(3,4)).  I am running ggplot2 to produce my 12
    >> plots. For some reason, par(mfrow=c(3,4)) did not turn out 3*4 matrix.
    >> 
    >> my basic R codes for each plot is
    >> par(mfrow=c(3,4))
    >> library(ggplot2)
    >> p <- ggplot(a, aes(x=Genotypes, y=Plant_hight, size=Plant_hight,
    >> color=Showing_rate)) +
    >> .
    >> .
    >> 
    >> Best regards,
    >> 
    >> Greg
    >> 
    >> [[alternative HTML version deleted]]
    >> 
    >> ______________________________________________
    >> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
    >> 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.
    >> 
    > -- 
    > Sarah Goslee
    > http://www.stringpage.com
    > http://www.sarahgoslee.com
    > http://www.functionaldiversity.org

    > [[alternative HTML version deleted]]

    > ______________________________________________
    > R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
    > 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.




More information about the R-help mailing list