This is a test version of Biostars. For the public version, visit https://www.biostars.org.
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?

r biostatistics corrplot correlation

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

0 answers

No answers yet.

Log in to answer this question.