HSMM.plot: Plot a move.HSMM object

Description Usage Arguments Value

View source: R/HSMM.plot.R

Description

This function plots the fitted distributions against histograms of the data for each observation variable. Fitted distributions are scaled by the stationary distribution of the transition matrix. Scaled distributions are added and this combined distribution is plotted in red. These plots may be helpful in assessing lack of fit or convergence problems. The x scale and number of bins may need to be changed for useful plots.

Usage

1
  HSMM.plot(move.HSMM, xlim, breaks, by)

Arguments

move.HSMM

A move.HSMM object containing a fitted HSMM model.

xlim

An optional nstate x 2 matrix containing the minimum and maximum x values to be used for plotting each distribution. If no matrix is supplied, the range of the plot is the range of the data. xlim must be specified for correct plotting of distributions with support on the integers (e.g. poisson; see example).

breaks

An optional vector of length nstate containing the number of breaks to use for the histograms for each distribution. It also accepts the breaks methods of the hist function.

by

An optional vector of length nstate containing the spacing of x points for each distribution. Default is 0.001. by must be specified for correct plotting of distributions with support on the integers (e.g. poisson; see example).

Value

plots as described above


benaug/move.HMM documentation built on Jan. 23, 2022, 4:29 a.m.