Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using mixed methods to visualize a correlation matrix as in corrplot #172

Open
luifrancgom opened this issue Aug 3, 2023 · 0 comments
Open

Comments

@luifrancgom
Copy link

Feature

I have been using the package corrplot where there is a function corrplot::corrplot.mixed . This function uses mixed methods to visualize a correlation matrix which in the package corrr are not incorporated in relation to corrr::autoplot. Here is a comparison between the plots created:

Libraries and data

library(tidyverse)
library(corrr)
library(corrplot)
#> corrplot 0.92 loaded

iris_numeric <- iris |>
  as_tibble() |>
  select(where(is.numeric))

corrr plot

iris_numeric |>
  correlate() |>
  autoplot()
#> Correlation computed with
#> • Method: 'pearson'
#> • Missing treated using: 'pairwise.complete.obs'

corrplot plot

cor(iris_numeric) |>
corrplot.mixed()

As you can see corrplot::corrplot.mixed includes more information. For example in the lower level of the plot it adds the value of the correlations. I don't know if you will like to add more options to corrr::autoplot that are included in corrplot::corrplot.mixed .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant