Description Usage Arguments Value Examples
View source: R/bar_chart_waterfall.R
Generate horizontal waterfall chart.
1 2 3 4 5 6 7 |
cat |
vector containing category names of values |
series |
vector containing names of columns in data with values to plot |
data |
data frame containing data to be plotted |
add_result |
boolean value if result bar should be plotted |
result_title |
the title for the result bar. Ignored if add_result is false |
object of class tidychart with a character vector containing SVG elements
1 2 3 4 5 6 | df <- data.frame(
city = c("Berlin", "Munich", "Cologne", "London", "Vienna", "Paris", "Zurich"),
profit = sin(1:7)
)
bar_chart_waterfall(cat = 'city', series = 'profit', data = df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.