amOptions {rAmCharts} | R Documentation |
amOptions
Description
amOptions sets the most common options for chart customization. You can set other properties with the method setProperties. See details for exception.
Usage
amOptions(
chart,
theme = c("none", "light", "dark", "patterns", "chalk"),
legend = FALSE,
legendPosition = "right",
legendAlign = "left",
export = FALSE,
exportFormat = character(),
creditsPosition = "top-left",
main = character(),
mainColor = "#000000",
mainSize = 15,
zoom = FALSE,
scrollbar = FALSE,
scrollbarHeight = 20,
valuescrollbar = FALSE,
valuescrollbarHeight = 20,
labelRotation = 0,
...
)
Arguments
chart |
|
theme |
|
legend |
|
legendPosition |
|
legendAlign |
|
export |
|
exportFormat |
|
creditsPosition |
|
main |
|
mainColor |
|
mainSize |
|
zoom |
|
scrollbar |
|
scrollbarHeight |
|
valuescrollbar |
|
valuescrollbarHeight |
|
labelRotation |
|
... |
Other properties added to the chart using |
Details
Exception:
It's not possible to export a gauge chart data as CSV.
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
## Not run:
library(pipeR)
data(data_pie)
# Export
amPie(data = data_pie) %>>%
amOptions(export = TRUE)
# Legend
amPie(data = data_pie) %>>%
amOptions(legend = TRUE)
# Legend position
amPie(data = data_pie) %>>%
amOptions(legend = TRUE, legendPosition = "bottom")
# Credits position
amPie(data = data_pie) %>>%
amOptions(creditsPosition = "bottom-right")
# Theme
amPie(data = data_pie) %>>%
amOptions(theme = "chalk")
# Title
amPie(data = data_pie) %>>%
amOptions(main = "Social network", mainColor = "#FFFFFF", mainSize = 40, theme = "chalk")
# Custom exemple
amPie(data = data_pie) %>>%
amOptions(main = "Social network", mainColor = "#FFFFFF", mainSize = 40,
theme = "dark", legend = TRUE, legendPosition = "bottom",
creditsPosition = "bottom-right" )
## End(Not run)