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

Description Usage Arguments Examples

View source: R/plot_momentuHMMData.R

Description

Plot momentuHMMData or momentuHierHMMData

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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

1
2
3
4
5
# 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)

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