ts.plot                  package:ts                  R Documentation

_P_l_o_t _M_u_l_t_i_p_l_e _T_i_m_e _S_e_r_i_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Plot several time series on a common plot. Unlike `plot.ts' the
     series can have a different time bases, but they should have the
     same frequency.

_U_s_a_g_e:

     ts.plot(..., gpars = list())

_A_r_g_u_m_e_n_t_s:

     ...: one or more univariate or multivariate time series

   gpars: list of named graphics parameters to be passed to the
          plotting functions

_V_a_l_u_e:

     None.

_N_o_t_e:

     Although this can be used for a single time series, `plot' is
     easier to use and is preferred.

_A_u_t_h_o_r(_s):

     B.D. Ripley

_S_e_e _A_l_s_o:

     `plot.ts'

_E_x_a_m_p_l_e_s:

     data(UKLungDeaths)
     ts.plot(ldeaths, mdeaths, fdeaths,
             gpars=list(xlab="year", ylab="deaths", lty=c(1:3)))

     data(nottem)
     nott <- window(nottem, end=c(1936,12))
     fit <- arima0(nott,order=c(1,0,0), list(order=c(2,1,0), period=12))
     nott.fore <- predict(fit, n.ahead=36)
     ts.plot(nott, nott.fore$pred, nott.fore$pred+2*nott.fore$se,
             nott.fore$pred-2*nott.fore$se, gpars=list(col=c(1,1,4,4)))

