Learn R Programming

countHMM (version 0.1.0)

plotObs: plotObs

Description

Plots the Viterbi-decoded time series using different colors for the different states.

Usage

plotObs(mod)

Arguments

mod

An object of type countHMM (as returned by the function fitMod).

Value

A plot of the Viterbi-decoded time series.

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab