dists: Visualise distributions of numeric and categorical columns in...

Description Usage Arguments

View source: R/vis-dists.R

Description

Visualise distributions of numeric and categorical columns in a dataframe

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
dists(
  x,
  cols = dplyr::everything(),
  remove_outliers = FALSE,
  top_n = 5,
  bp_thickness = 0.12,
  bp_center = 0,
  density_colour = "grey",
  bp_colour = "blue",
  ecdf_colour = "red",
  na_colour = "blue",
  other_colour = "grey50",
  ...
)

Arguments

x

a dataframe

cols

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

remove_outliers

Remove outliers from numeric columns before visualisation (default = FALSE)

top_n

The top n levels to show - all other values will be lumped into 'Other'

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

na_colour

Colour for NA bars

other_colour

Colour for lumped 'Other' bars

...

Further arguments passed to patchwork::wrap_plots()


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