In a long but not complex analysis, I am generating a lot of ggplot2
plots, which are being dealt in the same programmatic way.
I will also need matrix plots every now and then, but ggplot2
no longer implements any matrix plot function (since plotmatrix
is deprecated).
Like suggested here, GGally's ggpairs()
implements matrix plot nicely.
The down side is that ggpairs()
returns a ggplot2 object matrix instead of a single ggplot2 object, so I can no longer deal with it in the same fashion I was dealing until then.
Hence my question. Is there a way to convert ggpairs()
' return into a single ggplot2 object?
Many thanks in advance!