plot_hist_all: Plot Faceted Histograms

Description Usage Arguments Examples

View source: R/plot_hist.R

Description

Plot histograms for all continuous variables in dataframe.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_hist_all(
  df,
  fct_reorder = FALSE,
  fct_rev = FALSE,
  bins = 10,
  fill = tidyquant::palette_light()[[3]],
  colour = "white",
  ncol = 5,
  scale = "free",
  interactive = FALSE
)

Arguments

fct_reorder

A logical scalar. Whether factor should retain natural ordering of levels.

fct_rev

A logical scalar. Whether factor levels should be reversed

bins

A numeric scalar. Number of bins for histograms.

fill

A character scalar. Fill colour for histogram bars.

colour

A character scalor. Colour for outline of bars

ncol

A numeric scalar. Number of columns for faceting panel.

scale

A character scalar. Are scales shared across facets for both rows and columns?

interactive

If true, plots are passed to plotly and display tooltips.

data

A tibble.

Examples

1

PsychlytxTD/fht documentation built on July 4, 2020, 5:42 p.m.