plot_corr: Plot correlation plots between numeric features. Takes a...

Description Usage Arguments Value Examples

View source: R/instaeda.R

Description

Plot correlation plots between numeric features. Takes a dataframe, subsets numeric columns and returns a correlation plot object.

Usage

1
plot_corr(df, cols = NULL, method = "pearson", colour_palette = "PuOr")

Arguments

df

Dataframe from which to take columns and calculate, plot correlation between columns.

cols

List of columns to perform correlation on. By default, null (perform on all numeric).

method

correlation calculation method, one of: 'pearson', 'kendall', 'spearman'. By default 'pearson'

colour_palette

one of ggplot accepted colour schemes

Value

ggplot plot object

Examples

1
2
3
4
## Not run: 
plot_corr(example_dataframe)

## End(Not run)

UBC-MDS/instaeda_R documentation built on March 29, 2021, 7:55 a.m.