plot.momentuHMMData: Plot 'momentuHMMData' or 'momentuHierHMMData'

View source: R/plot_momentuHMMData.R

plot.momentuHMMDataR Documentation

Plot momentuHMMData or momentuHierHMMData

Description

Plot momentuHMMData or momentuHierHMMData

Usage

## S3 method for class 'momentuHMMData'
plot(
  x,
  dataNames = c("step", "angle"),
  animals = NULL,
  compact = FALSE,
  ask = TRUE,
  breaks = "Sturges",
  ...
)

Arguments

x

An object momentuHMMData or momentuHierHMMData

dataNames

Names of the variables to plot. Default is dataNames=c("step","angle").

animals

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

compact

TRUE for a compact plot (all individuals at once), FALSE otherwise (default – one individual at a time).

ask

If TRUE, the execution pauses between each plot.

breaks

Histogram parameter. See hist documentation.

...

Currently unused. For compatibility with generic method.

Examples

# data is a momentuHMMData object (as returned by prepData), automatically loaded with the package
data <- example$m$data

plot(data,dataNames=c("step","angle","cov1","cov2"),
     compact=TRUE,breaks=20,ask=FALSE)


bmcclintock/momentuHMM documentation built on Oct. 26, 2022, 1 a.m.