Re: [R] R project global options file

2018-03-17 Thread Duncan Murdoch
On 17/03/2018 2:09 PM, David Winsemius wrote: On Mar 15, 2018, at 10:24 PM, Adrian Friskin wrote: Hello R-help, I currently have R-project 3.4.2 and R-studio 1.1.383 installed on some of our universities computer labs. Since the

Re: [R] R project global options file

2018-03-17 Thread Jeff Newmiller
Alternatively refer to the R Installation and Administration manual, which discusses the various user and site configuration files. There may be a Windows registry entry also. -- Sent from my phone. Please excuse my brevity. On March 17, 2018 11:09:48 AM PDT, David Winsemius

Re: [R] length of 'dimnames' [2] not equal to array extent- For Correlation Plot

2018-03-17 Thread Shivi Bhatia
Thank you Sarah, this is really helpful. Have a nice day. Regards, Shivi On Sat, Mar 17, 2018 at 10:28 PM, Sarah Goslee wrote: > That does clarify for me that you're missing a step: I didn't clearly > follow your description at first. > > corrplot expects a correlation

Re: [R] R project global options file

2018-03-17 Thread David Winsemius
> On Mar 15, 2018, at 10:24 PM, Adrian Friskin > wrote: > > Hello R-help, > I currently have R-project 3.4.2 and R-studio 1.1.383 > installed on some of our universities computer labs. Since the installation > of Visual studio the default

Re: [R] length of 'dimnames' [2] not equal to array extent- For Correlation Plot

2018-03-17 Thread Sarah Goslee
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 <-

Re: [R] length of 'dimnames' [2] not equal to array extent- For Correlation Plot

2018-03-17 Thread Bert Gunter
Hmmm The error message seems self-explanatory. Please re-read ?corrplot. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Mar 17, 2018 at

Re: [R] length of 'dimnames' [2] not equal to array extent- For Correlation Plot

2018-03-17 Thread Shivi Bhatia
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,

Re: [R] length of 'dimnames' [2] not equal to array extent- For Correlation Plot

2018-03-17 Thread Sarah Goslee
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

[R] length of 'dimnames' [2] not equal to array extent- For Correlation Plot

2018-03-17 Thread Shivi Bhatia
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:

[R] How to Find the value of r-square change in hierarchical multiple linear regression

2018-03-17 Thread faiz rasool
Dear list members, I'd like to find the value of r-square change at each step of a regression model. I know that I can use anova () to compare to models, but, if I want to find out that how much exactly r-square has change from one model to the next, how can I find that? Regards, and thanks