r-corrplot

R return corrplot as object

核能气质少年 提交于 2019-11-27 05:08:50
corrplot plots a correlation matrix, but it does not return a graphical object (grob) I would like to plot several correlation matrices on a single page. For normal plots, I would use grid.arrange from the gridExtra package. However since corrplot only prints and does not return an object, I can't see how to do this. Is there a workaround or a better alternative to corrplot ? There's the old standby par(mfrow=c(x, y)) where x is the number of rows you wish to plot and y the numberof columns. It then posts across and then down as you call the plots. par(mfrow = c(2, 2)) corrplot(cor(mat1))

R return corrplot as object

半城伤御伤魂 提交于 2019-11-26 11:26:59
问题 corrplot plots a correlation matrix, but it does not return a graphical object (grob) I would like to plot several correlation matrices on a single page. For normal plots, I would use grid.arrange from the gridExtra package. However since corrplot only prints and does not return an object, I can\'t see how to do this. Is there a workaround or a better alternative to corrplot ? 回答1: There's the old standby par(mfrow=c(x, y)) where x is the number of rows you wish to plot and y the numberof