Is there a way to turn a ggpairs() plot into a ggplot2 object?

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!

链接地址: http://www.djcxy.com/p/5224.html

上一篇: 如何使用wrap函数在GGally :: ggpairs中使用黄土方法

下一篇: 有没有办法将ggpairs()图变成ggplot2对象?