r - GGpairs, correlation values are not aligned -
i trying create correlation matrix using ggpairs, scatterplots coloured group (reg or irreg). correlation values plotted on upper corner not aligned, see in image here cor, reg , irreg values not aligned.
the code use this:
ggpairs(data=dat4, columns=1:5, title="correlation matrix", mapping= aes(colour = irregular), lower = list( continuous = "smooth", combo = "facetdensity", mapping = aes(color = irregular))) the data here: replicatable data
any suggestion? thank thank you!
chuck
this seems work:
ggpairs(data=dat4, columns=1:5, title="correlation matrix", mapping= aes(colour = irregular), lower = list( continuous = "smooth", combo = "facetdensity", mapping = aes(color = irregular)), upper = list(continuous = wrap("cor", size = 3, hjust=0.8))) 
Comments
Post a Comment