d3rain_hist: Create Rain Histograms

Description Usage Arguments Value Examples

View source: R/d3rain_hist.R

Description

Create Rain Histograms

Usage

1
d3rain_hist(.data, x, levels, title = "", xBins = 40)

Arguments

.data

a table of data

x

the binning x variable

levels

the ordered columns

title

chart title

xBins

Number of bins. Defaults to 40.

Value

an object of class 'd3rain_hist'

Examples

1
2
3
4
5
6
7
data.frame(
x = rnorm(100),
l1 = sample(c(TRUE, FALSE), replace = TRUE, size = 100, prob = c(0.8, 0.2)),
l2 = sample(c(TRUE, FALSE), replace = TRUE, size = 100, prob = c(0.5, 0.5)),
l3 = sample(c(TRUE, FALSE), replace = TRUE, size = 100, prob = c(0.3, 0.7))
) %>%
 d3rain_hist(x = x, levels = c("l1", "l2", "l3"), title = "my title")

daranzolin/d3rain documentation built on July 15, 2019, 11:40 p.m.