Variable name shuffles in Correlation Plot in R
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?
• 1,086 views
•
link
0 answers
No answers yet.
Log in to answer this question.
set the
seedand check if order is maintained. Post some data next time to reproduce the issue.