plot.dllm | R Documentation |
Produces a plot for an object of class dllm
(typically created by dllm
).
The function displays the observed data along with the fitted curves computed using filtered and/or
smoothed state estimates.
## S3 method for class 'dllm'
plot(
x,
type = c("smoother", "filter"),
plot_data = TRUE,
obs_cols = NULL,
obs_colors = NULL,
filter_colors = NULL,
smoother_colors = NULL,
conf.int = FALSE,
sig.level = 0.95,
...
)
x |
An object of class |
type |
Character; one of |
plot_data |
Logical; if |
obs_cols |
Character; an optional argument specifying the variables to be plotted. If |
obs_colors |
Optional character vector specifying custom colors for observed data. If not supplied, a default palette is used. |
filter_colors |
Optional character vector specifying custom colors for filtered curves. If not supplied, a default palette is used. |
smoother_colors |
Optional character vector specifying custom colors for smoothed curves. If not supplied, a default palette is used. |
conf.int |
Logical; if |
sig.level |
Numeric; significance level for confidence intervals (default: 0.95). |
... |
Additional graphical parameters to pass to the underlying plotting functions. |
This function produces a plot of the fitted DLM and returns NULL
invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.