hist_drip_settings: Adjust hist drip settings

Description Usage Arguments Value Examples

View source: R/d3rain_hist.R

Description

Adjust hist drip settings

Usage

1
2
hist_drip_settings(d3rain_hist, colors = NULL,
  transitionIntervals = 2500, dripSpeed = 300, dripSize = 5)

Arguments

d3rain_hist

an object of d3rain_hist

colors

a vector of colors

transitionIntervals

milliseconds between group transitions

dripSpeed

drop speed

dripSize

drip radius

Value

an object of d3rain_hist

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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") %>%
 hist_chart_settings(annotations = c("Annotation1", "Annotation2", "YO!"),
                     titlePosition = "left",
                     levelLabelLocation = "left") %>%
 hist_drip_settings(colors = c("red", "blue", "green"))

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