plotStates: Plot states

Description Usage Arguments Examples

View source: R/plotStates.R

Description

Plot the states and states probabilities.

Usage

1
plotStates(m, animals = NULL, ask = TRUE)

Arguments

m

A momentuHMM, momentuHierHMM, miHMM, or miSum object

animals

Vector of indices or IDs of animals for which states will be plotted.

ask

If TRUE, the execution pauses between each plot.

Examples

1
2
3
4
5
# m is a momentuHMM object (as returned by fitHMM), automatically loaded with the package
m <- example$m

# plot states for first and second animals
plotStates(m,animals=c(1,2))

momentuHMM documentation built on Sept. 5, 2021, 5:17 p.m.