fig_waterfall: Customizated figure of waterfull.

Description Usage Arguments Note References See Also Examples

View source: R/figure_waterfall.R

Description

waterfull with bars.

Usage

1
2
fig_waterfall(values, colors = c(start = "#558ED5", increase = "#51A047",
  reduce = "#F1B255"), start_label = "start", end_label = "end")

Arguments

values

Vector contains increase or reduce data.

colors

Named vector, defines the colours used to fill the rects.

start_label

Character.

end_label

Character

Note

This function is customizated by using the waterfall() function from package waterfalls

References

CRAN https://cran.r-project.org/ waterfalls

See Also

Other figures: fig_gantt

Examples

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')

purplezippo/ggpkt documentation built on May 21, 2019, 10:34 a.m.