blog/correlogram-in-r-how-to-highlight-the-most-correlated-variables-in-a-dataset/ #78
Replies: 15 comments 10 replies
-
Comment written by Rick on February 24, 2020 02:47:58: please look at my generalCorr package on CRAN which computes generalized correlations
|
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on February 25, 2020 15:34:34: Thanks for pointing this out Rick, I'll definitely have a look at your package ! |
Beta Was this translation helpful? Give feedback.
-
Comment written by Bernardo Lares on March 04, 2020 19:57:37: Hi! With Cheers! |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on March 06, 2020 10:04:46: Hi Bernardo, Thanks a lot for your input and for this nice package. I have added a section explaining the Regards, |
Beta Was this translation helpful? Give feedback.
-
Comment written by Bernardo Lares on March 06, 2020 13:08:35: Awesome, thanks for sharing. I'd replicate that example but with a dataset that contains categorical values so the value of the function can be fully understood. You can use Here is another post that will complement your information: Cheers and glad to know |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on April 12, 2020 07:25:39: Sorry for my late reply. Like your previous comment, it was categorised as spam due to the links, I'll make sure to check my spam more often. I tend to use the same dataset for the entire article to make it simple, and as the first part is only possible with quantitative variables, I prefer to use only quantitative variables in the illustration of your functions. I'll make sure to include categorical variables if I use this code again in a future article. I have included a link to your article if readers want more information about your package. Regards, |
Beta Was this translation helpful? Give feedback.
-
Comment written by Robert C Cline, Sr. on August 16, 2020 16:02:08: Your function corrplot2 runs for me in RMarkdown. I tried to save the corrplot2 function in a snippet. There are no variables to add in the snippet, so it is your function verbatim. When I call the snippet to R script, it first requires the psych package. After loading the psych package, when I run the function, it loads with the following comment: " bytecode: 0x000002974bb3dc48" I then run the function after assigning
The function fails with the following message: Do you know how to resolve this? Thank you. |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on August 17, 2020 06:44:23: Dear Robert, I tried your code on my machine, and it works perfectly. See the image below for the code and the result: Hope this helps. Regards, |
Beta Was this translation helpful? Give feedback.
-
Dear Antoine I also have been looking for ways to produce a plot with an output similar to that obtained with VAR and WITH commands in SAS PROC CORR . I found this website below but I can’t produce a matrix with P-values that match the correlation values. This would allow to omit the nonsignificant correlations
Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your question. I don't use SAS so I cannot help you on this matter, but in lines 15-16 of the code, you should be able to change the use from "everything" (which is the default) to "pairwise.complete.obs". Let me know if this fixes your issue. Regards, |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hello Antoine,
I am interested on correlation.
- 22 and 1:14
- 25 and 1:14
- 26 and 1:14
- 28 and 1:14
Thanks, Roi.
|
Beta Was this translation helpful? Give feedback.
-
Many thanks Antoine. It is working now, I think that I have a problem or conflict with libraries, because I had tried to order the data in the same way, but the answer was that it could not read the vector. |
Beta Was this translation helpful? Give feedback.
-
Hi @antoine, thank you (again!) for your very practical blog posts and clear descriptions. The One question, when I run
My question is how do I get the results for $45,001-$60,000? I have tried
but I get the following error message
I've also tried with double quote marks like this but no success
Any help or advice would be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
Hi, this is great. How can I modify the size of the text in the code you wrote? Modifying the number size was clear but I want to make the data names smaller. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Correlogram in R: how to highlight the most correlated variables in a dataset - Stats and R
Make the the most correlated variables stand out via a correlogram. See also how to enhance a correlation plot to show significant correlations among variables
https://statsandr.com/blog/correlogram-in-r-how-to-highlight-the-most-correlated-variables-in-a-dataset/
Beta Was this translation helpful? Give feedback.
All reactions