Displaying 4 results from an estimated 4 matches for "old_car_purchase_yr".
Did you mean:
old_car_purchase_yrs
2018 Mar 17
3
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...ducible 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, 672000L, 729000L, 470800L, 423000L, 72184L, 368022L,
1037500L), .Dim = c(10L, 3L), .Dimnames = list(NULL, c("AGE",
"OLD_CAR_PURCHASE_YRS", "Total.Spend.With.Maruti")))
Please advice if this would help.
Thank you. Shivi
On Sat, Mar 17, 2018 at 8:45 PM, Sarah Goslee <sarah.goslee at gmail.com>
wrote:
> I'm assuming you are using the corrplot package.
>
> If so, your data object does need to be a...
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 matrix(unlist(value, recursive = FALSE, use.names = FALSE),...
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...d(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, 672000L, 729000L, 470800L, 423000L, 72184L, 368022L,
> 1037500L), .Dim = c(10L, 3L), .Dimnames = list(NULL, c("AGE",
> "OLD_CAR_PURCHASE_YRS", "Total.Spend.With.Maruti")))
>
> Please advice if this would help.
>
> Thank you. Shivi
>
> On Sat, Mar 17, 2018 at 8:45 PM, Sarah Goslee <sarah.goslee at gmail.com>
> wrote:
>
>> I'm assuming you are using the corrplot package.
>>
>...
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...k, then provide a reproducible example so we can
offer further advice.
Sarah
On Sat, Mar 17, 2018 at 11:08 AM, Shivi Bhatia <shivipmp82 at gmail.com> wrote:
> 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 matr...