chartTheme: Create A Chart Theme

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Create a chart.theme object for use within chartSeries to manage desired chart colors.

Usage

1
chartTheme(theme = "black", ...)

Arguments

theme

name of base theme

...

name=value pairs to modify

Details

Used as an argument to the chartSeries family of functions, chartTheme allows for on-the-fly modification of pre-specified chart ‘themes’. Users can modify a pre-built theme in-place, or copy the theme to a new variable for use in subsequent charting calls.

Internally a chart.theme object is nothing more than a list of values organized by chart components. The primary purpose of this is to facilitate minor modification on the fly, as well as provide a template for larger changes.

Setting style arguments for TA calls via chartTheme requires the user to pass the styles as name=value pairs with a name containing the TA call in question. See examples for assistance.

Current components that may be modified with appropriate values:

Value

A chart.theme object

Author(s)

Jeffrey A. Ryan

See Also

chartSeries

Examples

1
2
3
4
5
6
7
8
chartTheme()
chartTheme('white')
chartTheme('white',up.col='blue',dn.col='red')

# A TA example
chartTheme(addRSI.col='red')

str(chartTheme())

R-Finance/quantmod documentation built on May 8, 2019, 4:49 a.m.