chartSeries(x,
type = c("auto", "candlesticks", "matchsticks", "bars","line"),
show.vol = TRUE,
show.grid = TRUE,
name = deparse(substitute(x)),
time.scale = NULL,
technicals = NULL,
line.type = "l",
bar.type = "ohlc",
xlab = "time", ylab = "price", theme = "black",
up.col,dn.col,color.vol = TRUE, multi.col = FALSE,
...)barChart(x,name=deparse(substitute(x)),type='bars',...)
candleChart(x,name=deparse(substitute(x)),type='candlesticks',...)
lineChart(x,name=deparse(substitute(x)),type='line',
color.vol=FALSE,...)
quantmod.OHLC
data as returned by getSymbols.yahoo
. In theory any zoo
object conforming to OHLC conventions can be coerced to a
quantmod.OHLC
object, and thus charted.Line charts are created with close data, or from single column time series.
Future versions will allow for additional charting functions to be called subsequently which will allow for additional information to be display on the chart, such as technical indicators/studies, as well as entry and exit points given a particular trade strategy.
line.type
and bar.type
allow further fine tuning of
chart styles to user tastes, as do the addition of
up.col
and dn.col
arguments.
multi.col
implements a color coding scheme used in some
charting applications, and follows the following rules:
getSymbols
getSymbols("YHOO")
chartSeries(YHOO)
barChart(YHOO)
candleChart(YHOO)
matchChart(YHOO,theme="white")
lineChart(YHOO)
Run the code above in your browser using DataLab