R/exploratory_data_analysis.R
eda_variable_correlation.Rd
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({ library(store) 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")) }