Variable name shuffles in Correlation Plot in R
0
0
Entering edit mode
2.9 years ago
 library(corrplot)
 png(height=1200, width=1500, pointsize=15, file="name4.png") 
corrplot(M , addCoef.col="black" , number.cex = 1.5, tl.cex = 2 , order = "AOE" )
corrplot(cor_1 , method = "circle", p.mat = p.mat,sig.level = 0.05  )

This is my code for creating a png file of correlation plot. But every time I create it, the order of variables shuffles. Is there a way in which I can keep the order of variables in the core plot unchanging?

R Biostatistics Corrplot Correlation • 579 views
ADD COMMENT
0
Entering edit mode

set the seed and check if order is maintained. Post some data next time to reproduce the issue.

ADD REPLY

Login before adding your answer.

Traffic: 2908 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6