Description Usage Arguments Value Examples
Adjust chart settings
1 2 | hist_chart_settings(d3rain_hist, annotations = NULL,
titlePosition = "center", levelLabelLocation = "center")
|
d3rain_hist |
an object of class d3rain_hist |
annotations |
a vector of annotations |
titlePosition |
either 'center', 'left', or 'right' |
levelLabelLocation |
either 'center', 'left', or 'right' |
an object of class d3rain_hist
1 2 3 4 5 6 7 8 9 10 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.