chartTheme             package:quantmod             R Documentation

_C_r_e_a_t_e _A _C_h_a_r_t _T_h_e_m_e

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

   theme: name of base theme 

     ...: name=value pairs to modify 

_D_e_t_a_i_l_s:

     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:

   _f_g._c_o_l foreground color

   _b_g._c_o_l background color

   _g_r_i_d._c_o_l grid color

   _b_o_r_d_e_r border color

   _m_i_n_o_r._t_i_c_k minor tickmark color

   _m_a_j_o_r._t_i_c_k major tickmark color

   _u_p._c_o_l up bar/candle color

   _d_n._c_o_l down bar/candle color

   _u_p._u_p._c_o_l up after up bar/candle color

   _u_p._d_n._c_o_l up after down bar/candle color

   _d_n._d_n._c_o_l down after down bar/candle color

   _d_n._u_p._c_o_l down after up bar/candle color

   _u_p._b_o_r_d_e_r up bar/candle border color

   _d_n._b_o_r_d_e_r down bar/candle border color

   _u_p._u_p._b_o_r_d_e_r up after up bar/candle border color

   _u_p._d_n._b_o_r_d_e_r up after down bar/candle border color

   _d_n._d_n._b_o_r_d_e_r down after down bar/candle border color

   _d_n._u_p._b_o_r_d_e_r down after up bar/candle border color

_V_a_l_u_e:

     A chart.theme object

_A_u_t_h_o_r(_s):

     Jeffrey A. Ryan

_S_e_e _A_l_s_o:

     'chartSeries'

_E_x_a_m_p_l_e_s:

     chartTheme()
     chartTheme('white')
     chartTheme('white',up.col='blue',dn.col='red')

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

     str(chartTheme())

