Description Usage Arguments Note References See Also Examples
View source: R/figure_waterfall.R
waterfull with bars.
1 2 | fig_waterfall(values, colors = c(start = "#558ED5", increase = "#51A047",
reduce = "#F1B255"), start_label = "start", end_label = "end")
|
values |
Vector contains increase or reduce data. |
colors |
Named vector, defines the colours used to fill the rects. |
start_label |
Character. |
end_label |
Character |
This function is customizated by using the waterfall()
function
from package waterfalls
CRAN https://cran.r-project.org/ waterfalls
Other figures: fig_gantt
1 2 3 4 5 6 7 8 | fig_waterfall(values = c(200, -50, 70),
start_label = 'start', end_label = 'end')
fig_waterfall(values = c(200, -50, -19, 70),
start_label = 'start', end_label = 'end')
fig_waterfall(values = c(200, -50, -19, 70, 30, 13, -5, 19),
start_label = 'start', end_label = 'end')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.