Description Usage Arguments Value Examples
Plots the Viterbi-decoded time series using different colors for the different states.
1 | plotObs(mod)
|
mod |
An object of type |
A plot of the Viterbi-decoded time series.
1 2 3 4 5 6 7 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.