[R] par(mfrow) for heatmap plots
Brian Smith
bsmith030465 at gmail.com
Sun Jul 23 14:11:32 CEST 2017
Hi,
I was trying to use par(mfrow) to put 4 heatmaps on a single page. However,
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)
pdf(file='test.pdf',width=10,height=8)
par(mfrow=c(2,2))
heatmap(test)
heatmap(test)
heatmap(test)
heatmap(test)
dev.off()
thanks!
[[alternative HTML version deleted]]
More information about the R-help
mailing list