reChart allows for dynamic changes to the chart without
having to respecify the full chart parameters.
chartSeries(x,
type = c("auto", "candlesticks", "matchsticks", "bars","line"),
subset = NULL,
show.grid = TRUE,
name = NULL,
time.scale = NULL,
log.scale = FALSE,
TA = 'addVo()',
TAsep=';',
line.type = "l",
bar.type = "ohlc",
theme = chartTheme("black"),
layout = NA,
major.ticks='auto', minor.ticks=TRUE,
yrange=NULL,
plot=TRUE,
up.col,dn.col,color.vol = TRUE, multi.col = FALSE,
...)reChart(type = c("auto", "candlesticks", "matchsticks", "bars","line"),
subset = NULL,
show.grid = TRUE,
name = NULL,
time.scale = NULL,
line.type = "l",
bar.type = "ohlc",
theme = chartTheme("black"),
major.ticks='auto', minor.ticks=TRUE,
yrange=NULL,
up.col,dn.col,color.vol = TRUE, multi.col = FALSE,
...)
NULL bypass internal layoutIf plot=FALSE a chob object will be returned.
themeLine charts are created with close data, or from single column time series.
The subset argument can be used to specify a
particular area of the series to view. The underlying
series is left intact to allow for TA functions to
use the full data set. Additionally, it is possible
to use syntax borrowed from the first and last
functions, e.g.
TA allows for the inclusion of a variety of
chart overlays and tecnical indicators. A full list is
available from addTA. The default TA argument is
addVo() - which adds volume, if available, to the
chart being drawn.
theme requires an object of class chart.theme, created
by a call to chartTheme. This function can be used to modify the
look of the resulting chart. See chart.theme for details.
line.type and bar.type allow further fine tuning of
chart styles to user tastes.
multi.col implements a color coding scheme used in some
charting applications, and follows the following rules:
getSymbols, addTA, setTA,
chartThemegetSymbols("YHOO")
chartSeries(YHOO)
chartSeries(YHOO, subset='last 4 months')
chartSeries(YHOO, subset='2007::2008-01')
chartSeries(YHOO,theme=chartTheme('white'))
chartSeries(YHOO,TA=NULL) #no volume
chartSeries(YHOO,TA=c(addVo(),addBBands())) #add volume and Bollinger Bands from TTR
addMACD() # add MACD indicator to current chart
setTA()
chartSeries(YHOO) #draws chart again, this time will all indicators presentRun the code above in your browser using DataLab