Remove background colour in ggpairs from GGally

I'm plotting all my graphs with theme_bw() in ggplot2, and now i'd like to apply the same (or similar) theme to a ggpairs plot of GGally. I tried it this way, but this seems to have no effect:

p <- ggpairs(vars, columns=1:ncol(vars), lower=list(params=c(alpha = 0.5, theme(panel.background = element_blank()))))

Is there a way to apply a ggplot2-theme to a ggpairs plot ?

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

上一篇: 在单个图表上绘制多个条件的数据

下一篇: 从GGally中删除ggpairs的背景颜色