Description Usage Arguments Examples
Cette fonction permet de mesurer la corrélation entre tous les types de variables (numeric vs numeric, numeric vs nominal, nominal vs nominal). Ces dernières doivent préalablement être converties au format requis ( numeric et character ou facteur).
1 | corr_matrix(dat, plot = FALSE, reactive = FALSE)
|
dat |
Data.Frame |
plot |
Return correlation matrix plot ? |
reactive |
Return plotly unstead of ggplot graph output |
1 2 3 4 | x = as_tibble(mtcars) %>%
mutate_at(vars(cyl, vs, am, gear, carb), as.factor) %>%
mutate_at(vars(mpg, disp, hp, drat, wt, qsec), as.numeric) %>%
corr()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.