numeric_dists: Visualise distributions of numeric columns in a dataframe

Description Usage Arguments Examples

View source: R/vis-numeric-dists.R

Description

Returns a facetted plot of the density estimate (scaled to 1) including an overlay of the ECDF and horizontal box plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
numeric_dists(
  x,
  cols = dplyr::everything(),
  remove_outliers = FALSE,
  bp_thickness = 0.12,
  bp_center = 0,
  density_colour = "grey",
  bp_colour = "blue",
  ecdf_colour = "red"
)

Arguments

x

dataframe containing numeric columns

cols

Tidyselect columns to use (default = dplyr::everything())

remove_outliers

Rremove outliers before visualisation (default = FALSE)

bp_thickness

Boxplot thickness (in units of y)

bp_center

Boxplot centre height (in units of y)

density_colour

Density estimate fill colour

bp_colour

Boxplot colour

ecdf_colour

ECDF colour

Examples

1
numeric_dists(diamonds[1:3000, ])

cj-holmes/holmesr documentation built on Sept. 20, 2020, 12:44 a.m.