GGally::ggpairs
绘制了很好的图形,就像下面这样。我寻求进一步改进的唯一一件事是删除绘图上部的所有网格线,其中是相关系数。可能还会在每个上图周围绘制矩形。
library("GGally")
data(iris)
ggpairs(iris[, 1:4], lower=list(continuous="smooth", params=c(colour="blue")),
diag=list(continuous="bar", params=c(colour="blue")),
upper=list(params=list(corSize=6)), axisLabels='show')
发布于 2014-02-19 18:35:31
查看this related question和my forked repo.使用assignInNamespace
修改ggally_cor
函数,如上述问题所示。
唯一需要做的就是修改theme
调用:
theme(legend.position = "none",
panel.grid.major = element_blank(),
axis.ticks = element_blank(),
panel.border = element_rect(linetype = "dashed", colour = "black", fill = NA))
https://stackoverflow.com/questions/21810675
复制相似问题