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

Alex Zarebski @ez@reb@k| @end|ng |rom gm@||@com
Wed May 30 10:46:49 CEST 2018


You might find the patchwork library helpful (plot_layout function)

https://github.com/thomasp85/patchwork

I'm not sure if it's on CRAN but you can devtools::github_install it.

Cheers,
Alex

On Wed, May 30, 2018 at 6:42 PM, 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.
>

	[[alternative HTML version deleted]]




More information about the R-help mailing list