eda_variable_correlation | R Documentation |
Exports a plot of the correlation matrix for each variable into a temporary directory, showing the correlation values between each variable combination.
eda_variable_correlation(.dataset)
.dataset |
A data frame requiring exploratory data analysis. |
The data frame is returned invisibly so that the function can be used in a piped workflow.
Other exploratory data analysis:
eda_variable_collection()
,
eda_variable_distribution()
,
eda_variable_outliers()
,
eda_variable_summary()
# example from palmerpenguins
# https://allisonhorst.github.io/palmerpenguins/reference/penguins_raw.html
suppressPackageStartupMessages({
suppressWarnings({
library(palmerpenguins)
})
})
suppressMessages({eda_variable_correlation(penguins_raw)})
# move figures from temporary directory
suppressPackageStartupMessages({
suppressWarnings({
library(fs)
library(here)
})
})
if(dir_exists(here("man", "figures"))) {
file_move(path(tempdir(), "figures", "08-correlation_plot.png"),
here("man", "figures", "08-correlation_plot.png"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.