Skip to contents

This function plots the states of an autoregressive HMM decoded by the Viterbi algorithm.

Usage

plot_states(states, names = "none", title = TRUE)

Arguments

states

Vector of states (natural numbers, range 1-N).

names

optional, specifies the names of the states. If "none", state 1-N will be used.

title

bool, indicator if the plot should have a title.