r-corrplot

Change text color in corrplot.mixed

爱⌒轻易说出口 提交于 2019-12-01 06:15:56
问题 In the r package corrplot , you can mix the type of figure on the lower and upper half of a correlation matrix to make a nice visual. I would like to have numbers on the lower half of my matrix, and ellipses on the top half of the matrix - that is all fine. But, with my data I cannot see some of the correlation numbers since they are near 0. Below is the code I am using and current output. Is there a way to change the text color for the lower half of the matrix? I'd like to change the colors

R corrplot change data labels

旧巷老猫 提交于 2019-12-01 05:27:14
问题 I am using R corrplot library. It looks amazing, however to produce a really good plot I want to change the labels of rows and columns of the correlation matrix. One solution is to do something like this: cbak <- colnames(my.data.frame) colnames(my.data.frame) <- c("a", "set", "of", "labels") corrplot(cor(my.data.frame)) colnames(my.data.frame) <- cbak However this looks strange and ugly. I guess I should work with the labels parameter of a text() function, but I can't figure how. corrplot

Reporting significance level in corrplot()

◇◆丶佛笑我妖孽 提交于 2019-11-29 12:24:48
I'm currently using corrplot() from the corrplot package in R and I've stumbled across two problems. For simplicity, I'll use the same notation as the help/introduction page for corrplot. I'd like to inscribe either my p-value or how significant the test was (or both!) in all cells, not just the insignificant ones. I'd like these inscriptions only in the upper triangular. To address 2) first, I've been able to use this, but if feels kind of hacky: corrplot(M, type="upper", p.mat = res1[[1]], insig="p-value", tl.pos="n") corrplot(M, type="lower", add=T, tl.pos="d", cl.pos="n")) However I haven

corrplot parameters in R

五迷三道 提交于 2019-11-29 11:28:35
I have used the corrplot as below, but as you can see I need to enlarge the font size of numbers inside the circles and then the plot title is not in a correct position and font size(not visible completely) but I can not find the parameters for them. I will be grateful if you could help. library(corrplot) png(height=1200, width=1200, file="overlap.png") col1 <-rainbow(100, s = 1, v = 1, start = 0, end = 0.9, alpha = 1) test <- matrix(data=c(20:60),nrow=7,ncol=7) corrplot(test,tl.cex=3,title="Overlaps Between methods", method="circle",is.corr=FALSE,type="full", cl.lim=c(10,100),cl.cex=2,addgrid

How to change font size of the correlation coefficient in corrplot?

只愿长相守 提交于 2019-11-28 23:24:07
I am plotting correlation plot with corrplot. I want to plot also the correlation coefficients: require(corrplot) test <- matrix(data = rnorm(400), nrow=20, ncol=20) corrplot(cor(test), method = "color", addCoef.col="grey", order = "AOE") But they are too big in the plot: Is there any way to make the font of the coefficent smaller? I've been looking at ?corrplot but there are only parameters to change the legend and axis font sizes ( cl.cex and tl.cex ). pch.cex doesn't work either. It is far from the answer, it is kind of a dirty hack, but this works (thanks user20650 for the idea): cex

corrplot shows insignificant correlation coefficients even when insig = “blank” is set

╄→尐↘猪︶ㄣ 提交于 2019-11-28 11:43:40
I like to use correlation plot using corrplot function with correlation coefficients printed in the cells (using addCoef.col and addCoefasPercent = TRUE ). I also like to remove the insignificant correlations from the plot (using insig = "blank" ). The problem is that this only works for the background color, but not for the coefficient itself, so the coefficient itself is still printed! See: set.seed(123) par(cex=0.8) # trick for cor. coef font size, see http://stackoverflow.com/q/26574054/684229 col1 <-rainbow(100, s = 1, v = 1, start = 0, end = 0.9, alpha = 1) test <- matrix(data=rnorm(400)

Correlation Corrplot Configuration

ぐ巨炮叔叔 提交于 2019-11-28 08:40:51
I am newbie in R scripts :-) I need build a correlation matrix and I´am trying to configurate some parameters to adapt the graph. I am using the corrplot package. I Built a corrplot matrix this way: corrplot(cor(d1[,2:14], d1[,2:14]), method=c("color"), bg = "white", addgrid.col = "gray50", tl.cex=1, type="lower", tl.col = "black", col = colorRampPalette(c("red","white","blue"))(100)) I need show the values of correlation in the lower matrix inside the color matrix that I built. How i can do that? Is it possible exclude the main diagonal from the lower matrix? In this diagonl always we have

Reporting significance level in corrplot()

爷,独闯天下 提交于 2019-11-28 05:55:27
问题 I'm currently using corrplot() from the corrplot package in R and I've stumbled across two problems. For simplicity, I'll use the same notation as the help/introduction page for corrplot. I'd like to inscribe either my p-value or how significant the test was (or both!) in all cells, not just the insignificant ones. I'd like these inscriptions only in the upper triangular. To address 2) first, I've been able to use this, but if feels kind of hacky: corrplot(M, type="upper", p.mat = res1[[1]],

corrplot parameters in R

匆匆过客 提交于 2019-11-28 04:57:53
问题 I have used the corrplot as below, but as you can see I need to enlarge the font size of numbers inside the circles and then the plot title is not in a correct position and font size(not visible completely) but I can not find the parameters for them. I will be grateful if you could help. library(corrplot) png(height=1200, width=1200, file="overlap.png") col1 <-rainbow(100, s = 1, v = 1, start = 0, end = 0.9, alpha = 1) test <- matrix(data=c(20:60),nrow=7,ncol=7) corrplot(test,tl.cex=3,title=

How to change font size of the correlation coefficient in corrplot?

六月ゝ 毕业季﹏ 提交于 2019-11-27 14:45:27
问题 I am plotting correlation plot with corrplot. I want to plot also the correlation coefficients: require(corrplot) test <- matrix(data = rnorm(400), nrow=20, ncol=20) corrplot(cor(test), method = "color", addCoef.col="grey", order = "AOE") But they are too big in the plot: Is there any way to make the font of the coefficent smaller? I've been looking at ?corrplot but there are only parameters to change the legend and axis font sizes ( cl.cex and tl.cex ). pch.cex doesn't work either. 回答1: It