[R] par(mfrow) for heatmap plots

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Sun Jul 23 15:12:39 CEST 2017

The answer is "don't do that" because that function abuses par. Use lattice or ggplot2 with grid graphics to plot multiple heatmaps.

Sent from my phone. Please excuse my brevity.

On July 23, 2017 5:11:32 AM PDT, Brian Smith <bsmith030465 at gmail.com> wrote:
>I was trying to use par(mfrow) to put 4 heatmaps on a single page.
>I get one plot per page and not one page with 4 plots. What should I
>modify? Test code is given below:
>test = matrix(rnorm(60), 20, 3)
>	[[alternative HTML version deleted]]
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list