similar to: plot correlation matrix

Displaying 20 results from an estimated 4000 matches similar to: "plot correlation matrix"

2013 Oct 25
1
add a color band
Hi all, I would like to ask your help to add a color band (Ι am not sure regarding the right term, this color band at the right of the plot "describing" values with their corresponding color. For now I have only this code test<-matrix(data=runif(10000),nrow=100) plot(test,axes="FALSE") axis(1,at=c(0,1),labels=c("a","b")) # but  I would like to add
2011 Feb 07
1
color2d.maplot error
Dear all I am using color2D.maplot to map some matrixes to plot. everything works fine. It seems that when my matrix contains only the same value color2D.maplot returns the following error: color2D.matplot(estimatedsr,redrange=c(0,1),greenrange=c(0,.5),bluerange=c(0,.5),xlab="x",ylab="y",main=sprintf('Estimated'),show.legend=TRUE,show.values=TRUE) Error in rgb(reds,
2010 Mar 08
2
how to convert character variables into numeric variables directly
Here is the example. > age=18:29 > height=c(76.1,77,78.1,78.2,78.8,79.7,79.9,81.1,81.2,81.8,82.8,83.5) > type=c("A", "B", "C", "D","A", "B", "C", "D","A", "B", "C", "D") >
2011 Jun 28
2
problem with corrgram function
Dear list, I have a problem with the "corrgram" function. It does not seem to "color" large negative correlations, while the same correlation, if positive, provides no problems. Is this a bug? require(corrgram) a = seq(1,100) b = -jitter(seq(1,100), 80) cor(a,b) # r about -.96 c=as.data.frame(cbind(a,b)) corrgram(c, order=NULL, lower.panel=panel.pie,upper.panel=NULL,
2018 Mar 17
2
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
Created a new data set with 3 numeric variable to find correlation CR1<- mar%>% as_data_frame%>% select(AGE, OLD_CAR_PURCHASE_YRS, Total.Spend.With.AA) had to convert it to a data frame, code: as.matrix(as.data.frame(CR1)) Now i need to run a correlation plot for these 3 variables: corrplot(CR1, method = "circle") But i am getting this error: Error in
2018 Mar 17
3
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
Hi Sarah, Thank you for your help. I tried using CR1<-as.matrix(CR1) but gives error Error in corrplot(CR1, method = "circle") : The matrix is not in [-1, 1]!. I am using a corrplot library. Please find the reproducible example: dput(head(CR1,10)) structure(c(26L, 46L, 39L, 38L, 47L, 59L, 56L, 61L, 43L, 60L, 78L, 63L, 2L, 58L, 8L, 1L, 1L, 9L, 11L, 2L, 1037500L, 46747L, 346300L,
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
That does clarify for me that you're missing a step: I didn't clearly follow your description at first. corrplot expects a correlation matrix, not your original data. You need to use cor() first. That's pretty clear in the documentation. See for instance the examples: data(mtcars) M <- cor(mtcars) corrplot(M) Sarah On Sat, Mar 17, 2018 at 12:00 PM Shivi Bhatia <shivipmp82 at
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
I'm assuming you are using the corrplot package. If so, your data object does need to be a matrix, not a data frame. Since it's already a data frame, your line of code: as.matrix(as.data.frame(CR1)) doesn't need the as.data.frame function, but more importantly, you didn't assign the result to anything: as.matrix() does not work in place. CR1 <- as.matrix(CR1) Now try. If
2011 Oct 11
1
plots of correlation matrices
Hi, I want to do a visualisation of a matrix plot made up of several plots of correlation matrices (using corrplot()). My data is in csv format. Here's an example: id,category,attribute1,attribute2,attribute3,attribute4 661,SCHS,43.2,0,56.5,1 12202,SCHS,161.7,5.7,155,16 1182,SCHS,21.4,0,29,0 1356,SSS, 8.8182,0.1818,10.6667,0.6667 1864,SCHS,443.7273,9.9091,537,46 12360,SOA,6.6364,0,10,0
2012 May 25
1
Correlograms: using boxes and different variables on rows and columns
I'm trying to make correlograms using corrgram. See below for a simple example. #### library(corrgram) data(baseball) vars1 <- c("Assists","Atbat","Errors","Hits","Homer","logSal") vars2 <- c("Putouts","RBI","Runs","Walks","Years")
2011 May 06
1
How to alter circle size
Hello all, I'm trying to create a heatmap using 2 matrices I have: z and v. Both matrices represent different correlations for the same independent variables. The problem I have is that I wish to have the values from matrix z to be represented by color intensity while having the values from matrix v to be represented by circle size. I currently have the following in front of me and an unsure
2003 Sep 11
3
Flipping a heatmap
Hi I am using the heatmap function in package mva to look at large correlation matrices visually. Is there any way to "flip" the output of heatmap plot left-right so that, if presented with a correlation matrix, it plots the unity elements in the correlation matrix along a diagonal from top left to bottom right? For example: library(mva) x = matrix(rnorm(1000), ncol=10) z = cor(x)
2012 Aug 28
2
corrgram
Hello, are there fixed threshold values for the changes between different shades of blue in the corrgram? Or is a chang relative depending on the data? I didnt get it in manual. Thank you very much, best regards Claudia
2013 Aug 22
1
corrgram (package corrgram): how to plot multiple correlograms in the same page?
Hello, I am trying to plot a few correlograms on the same figure, with the function corrgram() from the package corrgram. However, the function does not seem to use the base graphic system, as setting out the multiple figure layout with, e.g., par(mfrow=c(2, 2,)) does not work. Does anybody know a workaround for this? Many thanks in advance for any advice best giuseppe -- Giuseppe Pagnoni,
2017 Jun 16
1
Changing Color of Selected Column Names in Corrplot
Dear All, Please consider the following example library(corrplot) M <- cor(mtcars) corrplot(M, method="circle", type="lower", diag=F) Suppose that I want to have the label "mpg" at the top in black and leave everything else in red. How can I achieve that? Cheers Lorenzo
2012 Aug 13
1
how to change variable names in corrgram diagonal
given this example library(corrgram) corrgram(mtcars[2:6], order=TRUE, upper.panel=panel.conf, lower.panel=panel.pie, diag.panel=panel.minmax, text.panel=panel.txt) how can I change the variable names in main diagonal? (so that I can put more informative names of variables) I think to understand that this should be done by modifing the panel.txt function but
2009 Jul 03
2
Correlation Network Diagram?
Hi all On page 39 of this paper [1] by Andrew Lo there is a very interesting correlation network diagram (sorry I dont have a more convenient link to the type of diagram I'm talking about). does anyone know of any package in R that can generate these types of diagrams? Cheers -- Rory [1] http://web.mit.edu/alo/www/Papers/august07.pdf [[alternative HTML version deleted]]
2008 Jun 17
2
color2D.matplot axis names
Hi, I finally came up with a nice colored matrixplot, using the color2D.matplot function of the plotrix package. But I can't assign xtics and ytics to this plot. I made sure that the matrix has correct colnames() and rownames(). Here's what I do: a=matrix(1:16, 4, 4) colnames(a) <- c("X1", "X2", "X3", X4) rownames(a) <- c("Y1",
2012 Jan 10
1
Correlograms
I would like to make a correlogram in which I also have a correlation matrix instead of one of the panels. Is that possible? -- View this message in context: http://r.789695.n4.nabble.com/Correlograms-tp4283245p4283245.html Sent from the R help mailing list archive at Nabble.com.
2010 Mar 06
1
color2D.matplot not giving colors
I am using color2D.matplot to plot a matrix about 400 by 200. The values in the matrix are 0:5 and NA. The resulting plot is not color, but shaded b/w. I tried to figure out how to add colors, I would like something like c(blue, green, red, cyan, green) #example motifx <- matrix(NA, nrow=100,ncol=20) motifx[,1:5] <- 1 motifx[,6:10] <- 2 motifx[,11:15] <- 3 motifx[,15:19] <- 4