getPlotData | R Documentation |
Data to produce plots of fitted model
getPlotData(m, type, format = "wide", alpha = 0.95)
m |
Fitted HMM object, as output by fitHMM. |
type |
Type of plot, one of: "dist", "tpm", "stat" |
format |
Format of data, either "wide" (for base graphics) or "long" (for ggplot) |
alpha |
Level of confidence intervals. Default: 0.95, i.e., 95% confidence intervals |
If type = "dist", the function evaluates each state-dependent distribution over the range of observed variable (step length or turning angle), and weighs them by the proportion of time spent in each state (obtained from Viterbi state sequence).
If type = "tpm", the function returns transition probabilities estimated over a range of covariate values. Other covariates are fixed to their mean values.
Data frame (or list of data frames) containing data in a format that can easily be plotted. If type = "dist", the output is a list with two elements, "step" and "angle". If type = "tpm" or "stat", the output is a list with one element for each covariate. See details for more extensive description of output.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.