Learn R Programming

tidycharts (version 0.1.3)

column_chart_waterfall: Generate column waterfall chart for visualizing contribution.

Description

Generate column waterfall chart for visualizing contribution.

Usage

column_chart_waterfall(data, x, series, styles = NULL, interval = "months")

Arguments

data

data frame in wide format containing data to be plotted

x

vector containing labels for x axis or name of column in data with values of x axis labels

series

vector containing names of columns in data with values to plot

styles

optional vector with styles of bars

interval

intervals on x axis. The width of the bars depends on this parameter

Value

object of class tidychart with a character vector containing SVG elements

Examples

Run this code
# NOT RUN {
df <- data.frame(x = 10:18,
                 y = rnorm(9))
column_chart_waterfall(df, 'x', 'y')
# }

Run the code above in your browser using DataLab