plot.moveHMM: Plot 'moveHMM'

Description Usage Arguments Details Examples

Description

Plot the fitted step and angle densities over histograms of the data, transition probabilities as functions of the covariates, and maps of the animals' tracks colored by the decoded states.

Usage

1
2
3
4
## S3 method for class 'moveHMM'
plot(x, animals = NULL, ask = TRUE, breaks = "Sturges",
  hist.ylim = NULL, sepAnimals = FALSE, sepStates = FALSE, col = NULL,
  cumul = TRUE, plotTracks = TRUE, ...)

Arguments

x

Object moveHMM

animals

Vector of indices or IDs of animals for which information will be plotted. Default: NULL; all animals are plotted.

ask

If TRUE, the execution pauses between each plot.

breaks

Histogram parameter. See hist documentation.

hist.ylim

Parameter ylim for the step length histograms. See hist documentation. Default: NULL ; the function sets default values.

sepAnimals

If TRUE, the data is split by individuals in the histograms. Default: FALSE.

sepStates

If TRUE, the data is split by states in the histograms. Default: FALSE.

col

Vector or colors for the states (one color per state).

cumul

If TRUE, the sum of weighted densities is plotted (default).

plotTracks

If TRUE, the Viterbi-decoded tracks are plotted (default).

...

Currently unused. For compatibility with generic method.

Details

The state-dependent densities are weighted by the frequency of each state in the most probable state sequence (decoded with the function viterbi). For example, if the most probable state sequence indicates that one third of observations correspond to the first state, and two thirds to the second state, the plots of the densities in the first state are weighted by a factor 1/3, and in the second state by a factor 2/3.

Examples

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

plot(m,ask=TRUE,animals=1,breaks=20)


Search within the moveHMM package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.