starsPlot              package:fAssets              R Documentation

_S_t_a_r_s _P_l_o_t_s _o_f _A_s_s_e_t_s.

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

     Displays star plots to compare assets sets.

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

     assetsStarsPlot(x, method = c("segments", "stars"), locOffset = c(0, 0),
         keyOffset = c(0, 0), ...)
         
     assetsBoxStatsPlot(x, par = TRUE, oma = c(0,0,0,0), mar = c(4, 4, 4, 4), 
         keyOffset = c(-0.65, -0.50), main = "Assets Statistics", 
         title = "Assets", titlePosition = c(3, 3.65), 
         description = "Box Plot Statistics", descriptionPosition = c(3, 3.50), ...)
     assetsBasicStatsPlot(x, par = TRUE, oma = c(0,0,0,0), mar = c(4, 4, 4, 4), 
         keyOffset = c(-0.65, -0.50), main = "Assets Statistics", 
         title = "Assets", titlePosition = c(3, 3.65), 
         description = "Basic Returns Statistics", descriptionPosition = c(3, 3.50), ...)
     assetsMomentsPlot(x, par = TRUE, oma = c(0,0,0,0), mar = c(4, 4, 4, 4), 
         keyOffset = c(-0.65, -0.50), main = "Assets Statistics", 
         title = "Assets", titlePosition = c(3, 3.65), 
         description = "Moments Statistics", descriptionPosition = c(3, 3.50), ...)
     assetsNIGFitPlot(x, par = TRUE, oma = c(0,0,0,0), mar = c(4, 4, 4, 4), 
         keyOffset = c(-0.65, -0.50), main = "Assets Statistics", 
         title = "Assets", titlePosition = c(3, 3.65), 
         description = "NIG  Parameters", descriptionPosition = c(3, 3.50), ...)

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

description: a destription string. 

descriptionPosition: the position of the description string. 

  method: a character string from to select the plot method. Eiter a 
          '"star"' or a '"segment"' plot. 

keyOffset: a numeric vector of lenght two, specifying an offset in the
          legend with respect to 'x' and 'y' direction. 

locOffset: a numeric vector of lenght two, specifying an offset in the
          location of the stars/circles with respect to 'x' and 'y'
          direction. 

    main: to set the main title. 

     mar: to set the number of lines of margin to be specified on the
          four  sides of the plot. The default is 'c(5,4,4,2)+0.1'. 

     oma: to set the size of the outer margins in lines of text. 

     par: a logical flag. Should be internal 'par()' setting be used? 

   title: a character string, the plot title. 

titlePosition: the position of the title string. 

       x: any rectangular time series object which can be converted by
          the  function 'as.matrix()' into a matrix object, e.g. like
          an  object of class 'timeSeries', 'data.frame', or 'mts'.  

     ...: optional arguments to be passed. 

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

     'assetsStarsPlot'
      draws segment or star diagrams of data sets,

     'assetsBasicStatsPlot'
      displays a segment plot of box plot statistics,

     'assetsMomentsPlot'
      displays a segment plot of distribution moments,

     'assetsBoxStatsPlot'
      displays a segment plot of box plot statistics,

     'assetsNIGFitPlot'
      displays a segment plot NIG parameter estimates.

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

     Diethelm Wuertz for the Rmetrics port.

_R_e_f_e_r_e_n_c_e_s:

     Wuertz, D., Chalabi, Y., Chen W., Ellis A. (2009); _Portfolio
     Optimization with R/Rmetrics_,  Rmetrics eBook, Rmetrics
     Association and Finance Online, Zurich.

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

     ## LPP2005REC -
        LPP = as.timeSeries(data(LPP2005REC))

     ## assetsBasicStatsPlot -
        # par(mfrow = c(1, 1))
        assetsBasicStatsPlot(LPP, 
          title = "", description = "")
        
     ## assetsMomentsPlot -
        assetsMomentsPlot(LPP, 
          title = "", description = "")
        
     ## assetsBoxStatsPlot -
        assetsBoxStatsPlot(LPP, 
          title = "", description = "")

     ## assetsNIGFitPlot -
        assetsNIGFitPlot(LPP[, 7:9], 
          title = "", description = "")

