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.enter image description here

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))) 

enter image description here


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -