ilagplot               package:IDPmisc               R Documentation

_I_m_a_g_e _L_a_g _P_l_o_t _M_a_t_r_i_x _f_o_r _L_a_r_g_e _T_i_m_e _S_e_r_i_e_s

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

     Produces an image lag plot matrix of large timeseries where the
     colors encode the density of the points in the lag plots.

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

     ilagplot(x, set.lags = 1,
              pixs = 1, zmax = NULL, colramp = IDPcolorRamp,
              mfrow = NULL, border = FALSE,
              main = NULL, cex.main = 2 * par("cex.main"), ...)

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

       x: ts object or ordinary vector

set.lags: vector of lags to be displayed

    pixs: Pixel size in mm

    zmax: Maximum counts per Pixel to be plotted. When NULL each lag
          plot has its individual scale. If a number >= maximum number
          of counts per pixel is supplied, the scale will be identical
          for all lag plots. The maximum of the number per pixel is
          delivered by the return vallue.

 colramp: Color ramp to encode the density of the points within a pixel

   mfrow: See Argument 'mfrow' in 'par'

  border: Shall border be drawn between the colors in the legend:
          'TRUE' / 'FALSE'

    main: Title

cex.main: Character size of title

     ...: Additional arguments to 'plot.default'

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

     Code is based on R function 'lag.plot' V1.7.

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

     Maximum number of counts per Pixel found.

_N_o_t_e:

     When you get the error message "Zmax too small! Densiest aereas
     are out of range!" you must run the function again without
     specifying zmax. The value returned gives you the minimum value
     allowed for zmax.

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

     Andreas Ruckstuhl, refined by Rene Locher

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

     'ipairs', 'ixyplot', 'Image'

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

     zmax <- ilagplot(sunspot.month, pixs=2, set.lags=1:9,
                      mfrow=c(3,3),border=FALSE,main="Test")
     ilagplot(sunspot.month, pixs=2, zmax=zmax, set.lags=1:6,
              mfrow=c(2,3), border=FALSE)

     x <-  rnorm(100000)
     ilagplot(x+c(x[-1],0)+c(x[-(1:2)],0,0)+c(x[-(1:3)],0,0,0),
              set.lags=1:4)

