plot.moveHMM | R Documentation |
moveHMM
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.
## S3 method for class 'moveHMM'
plot(
x,
animals = NULL,
ask = TRUE,
breaks = "Sturges",
col = NULL,
plotTracks = TRUE,
plotCI = FALSE,
alpha = 0.95,
...
)
x |
Object |
animals |
Vector of indices or IDs of animals for which information will be plotted.
Default: |
ask |
If |
breaks |
Histogram parameter. See |
col |
Vector or colors for the states (one color per state). |
plotTracks |
If |
plotCI |
If |
alpha |
Significance level of the confidence intervals if plotCI=TRUE. Default: 0.95 (i.e. 95% CIs). |
... |
Currently unused. For compatibility with generic method. |
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.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.