amWaterfall: Plotting waterfall

View source: R/chart_amWaterfall.R

amWaterfallR Documentation

Plotting waterfall

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.

References

See online documentation https://datastorm-open.github.io/introduction_ramcharts/ and amChartsAPI

See Also

amOptions, amBarplot, amBoxplot, amHist, amPie, amPlot, amTimeSeries, amStockMultiSet, amBullet, amRadar, amWind, amFunnel, amAngularGauge, amSolidGauge, amMekko, amCandlestick, amFloatingBar, amOHLC, amWaterfall

Examples

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)         

## End(Not run)


rAmCharts documentation built on Sept. 30, 2022, 5:06 p.m.