Learn R Programming

rAmCharts (version 2.1.7)

amWaterfall: Plotting waterfall chart using rAmCharts

Description

amWaterfall computes a waterfall chart of the given value.

Usage

amWaterfall(data, start = 0, horiz = FALSE, show_values = FALSE, ...)

Arguments

data

data.frame, dataframe with at least 3 columns : label (character), value (numeric), operation (character : "plus", "minus", "total"). You can add a third column "color" (character, colors in hexadecimal). You can also add a column "description" (character) containing the text you want to display when mouse is on the graphic ('<br>' for a new line). See data_waterfall.

start

numeric, value from which to start.

horiz

logical, TRUE for an horizontal chart, FALSE for a vertical one.

show_values

logical, TRUE to display values on the chart.

...

see amOptions for more options.

See Also

Examples

Run this code
# NOT RUN {
data("data_waterfall")
amWaterfall(data = data_waterfall, show_values = TRUE)
# }
# NOT RUN {
# Other examples available which can be time consuming depending on your configuration.

# Change the orientation :
amWaterfall(data = data_waterfall, horiz = TRUE)         
# }

Run the code above in your browser using DataLab