amWaterfall: Plotting waterfall

Description Usage Arguments References See Also Examples

View source: R/chart_amWaterfall.R

Description

amWaterfall computes a waterfall chart of the given value.

Usage

1
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

1
2
3
4
5
6
7
8
data("data_waterfall")
amWaterfall(data = data_waterfall, show_values = TRUE)


# Other examples available which can be time consuming depending on your configuration.

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

rAmCharts documentation built on Dec. 6, 2019, 5:11 p.m.