I have a binary dataframe (53115 rows; 520 columns) and I want to make a correlation chart. I want to color the correlation values in red if they are greater than or equal to 0.95, otherwise blue.
correl = abs(round(cor(bin_mat),2))
pdf("corrplot.pdf", width = 200, height = 200)
a = corrplot(correl, order = "hclust", addCoef.col = "black", number.cex=0.8, cl.lim = c(0,1), col=c(rep("deepskyblue",19) ,"red"))
dev.off()
I was able to get the graph but in many cases I get a wrong coloring (see graph below in value 0.91).
datafile: file
How can I correct this problem to have a correct color?