amOHLC {rAmCharts} | R Documentation |
Plotting OHLC chart
Description
amOHLC computes an OHLC chart of the given value.
Usage
amOHLC(
data,
xlab = "",
ylab = "",
horiz = FALSE,
zoom = TRUE,
positiveColor = "#7f8da9",
negativeColor = "#db4c3c",
names = c("low", "open", "close", "high"),
dataDateFormat = NULL,
minPeriod = ifelse(!is.null(dataDateFormat), "DD", ""),
...
)
Arguments
data |
|
xlab |
|
ylab |
|
horiz |
|
zoom |
|
positiveColor |
|
negativeColor |
|
names |
|
dataDateFormat |
|
minPeriod |
|
... |
see |
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_candleStick2")
amOHLC(data = data_candleStick2)
## Not run:
# Other examples available which can be time consuming depending on your configuration.
if (requireNamespace("pipeR", quietly = TRUE)) {
require(pipeR)
# Change colors
amOHLC(data = data_candleStick2, positiveColor = "green", negativeColor = "red")
# Naming the axes
amOHLC(data = data_candleStick2, xlab = "categories", ylab = "values") %>>% setChartCursor()
# Rotate the labels for x axis
amOHLC(data = data_candleStick2, labelRotation = 90)
# Change names
amOHLC(data = data_candleStick2, names = c("min", "begin", "end", "max")) %>>% setChartCursor()
# Use amOptions
amOHLC(data = data_candleStick2, zoom = FALSE)
}
## End(Not run)