amStockMultiSet compute a stock of multi data-sets
amStockMultiSet(
data,
panelColumn = NULL,
ZoomButtonPosition = "bottom",
ZoomButton = data.frame(Unit = "MAX", multiple = 1, label = "All"),
color = c("#2E2EFE", "#31B404", "#FF4000"),
precision = 1,
export = FALSE,
percentHeightPanel = NULL,
creditsPosition = "top-right",
...
)
list
, list of data.frame (same structure) first column is date, others are values
numeric
, numeric vector, controle panel adding for selected series
character
, zoom button position. Possible values are :
"left", "right", "bottom", "top"
data.frame
, 3 columns :
Unit, times unit
multiple : multiple*unit
label : button's label
character
, color of data-sets (in hexadecimal).
numeric
, digits precision
logical
, default set to FALSE. TRUE to display export feature.
numeric
, vector of size panel, same length than data
character
, credits position. Possible values are :
"top-right", "top-left", "bottom-right", "bottom-left"
other first level attributes
See online documentation https://datastorm-open.github.io/introduction_ramcharts/ and amChartsAPI
amOptions, amBarplot, amBoxplot, amHist, amPie, amPlot, amTimeSeries, amStockMultiSet, amBullet, amRadar, amWind, amFunnel, amAngularGauge, amSolidGauge, amMekko, amCandlestick, amFloatingBar, amOHLC, amWaterfall
if (FALSE) {
data(data_stock_3)
amStockMultiSet(data = data_stock_3)
amStockMultiSet(data = data_stock_3, panelColumn = c(1,2,1,1))
amStockMultiSet(data = data_stock_3, panelColumn = c(1,2,3,4))
ZoomButton <- data.frame(Unit = c("DD", "DD", "MAX"), multiple = c(1, 10 ,1),
label = c("Day","10 days", "MAX"))
ZoomButtonPosition <- "bottom"
amStockMultiSet(data = data_stock_3, panelColumn = c(1,2,1,1), ZoomButton = ZoomButton,
ZoomButtonPosition = "top")
amStockMultiSet(data = data_stock_3, precision = 2)
amStockMultiSet(data = data_stock_3, panelColumn = c(1,2,1,1), percentHeightPanel = c(3,1))
}
Run the code above in your browser using DataLab