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))
wherex
is the number of rows you wish to plot andy
the numberof columns. It then posts across and then down as you call the plots.Will plot as
Not sure if I got your question right, but maybe what you are looking for is simple
layout
?The recent
gridGraphics
package could probably do what you asked: return the plot as a grob.