How do you turn off color smoothing in R heatmap function? I’ve been trying to turn off the smoothing in order to get a white diagonal when plotting a heatmap of correlations in R.
This is what I’m using:
(h <- round(cor(data[,c(83,3:39)],use = "pairwise.complete.obs"),2))
heatmap(h,Colv = NA, Rowv = NA)
Try setting
scale = "none"to turn off the default scaling of the matrix values.