plotObs {countHMM} | R Documentation |
Plots the Viterbi-decoded time series using different colors for the different states.
plotObs(mod)
mod |
An object of type |
A plot of the Viterbi-decoded time series.
# importing example data
x = read.table("http://www.hmms-for-time-series.de/second/data/earthquakes.txt")$V2
# model fitting
lambda = rep(10^4,2)
mod = fitMod(x=x,lambda=lambda)
# plotting the Viterbi-decoded time series
plotObs(mod)