HMMPlotSerie              package:RHmm              R Documentation

_P_l_o_t _u_n_i_v_a_r_i_a_t_e_s _s_e_r_i_e_s _i_n _e_a_c_h _e_s_t_i_m_a_t_e_d _s_t_a_t_e_s

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

     This function plots the time series in each hidden state.

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

         HMMPlotSerie(obs, states, dis="NORMAL", color="green")
         

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

     obs: the vector, list of vectors of observations

  states: a ViterbiClass object which gives the hidden states or a
          vector or a lis of vectors of integer 1 to the number of
          hidden states

     dis: Distribution name = 'NORMAL', 'DISCRETE', 'MIXTURE'. Default
          'NORMAL'.

   color: color for the kernel density plot

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

     none

_N_o_t_e:

     HMMPlotSerie is not implemented for multivariate distributions.

     The time series of observations for each hidden states of the
     model are plotted using:
      plot(obs[states=i])) and i in 1..max(States)

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

     viterbi, plot

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

     data(geyser)
     obs <- geyser$duration
     #Fits an 3 states gaussian model for geyser duration
     ResFitGeyser <- HMMFit(obs, nStates=3)
     VitGeyser <- viterbi(ResFitGeyser, obs)
     #plot the series
     HMMPlotSerie(obs, VitGeyser)

