plotObs {countHMM}R Documentation

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

# 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)

[Package countHMM version 0.1.0 Index]