plot.dynrCook | R Documentation |
Plot method for dynrCook objects
## S3 method for class 'dynrCook'
plot(x, dynrModel, style = 1, names.state, names.observed,
printDyn = TRUE, printMeas = TRUE, textsize = 4, ...)
x |
dynrCook object |
dynrModel |
model object |
style |
The style of the plot in the first panel. If style is 1 (default), user-selected smoothed state variables are plotted. If style is 2, user-selected observed-versus-predicted values are plotted. |
names.state |
(optional) The names of the states to be plotted, which should be a subset of the state.names slot of the measurement slot of dynrModel. |
names.observed |
(optional) The names of the observed variables to be plotted, which should be a subset of the obs.names slot of the measurement slot of dynrModel. |
printDyn |
A logical value indicating whether or not to plot the formulas for the dynamic model |
printMeas |
A logical value indicating whether or not to plot the formulas for the measurement model |
textsize |
numeric. Font size used in the plot. |
... |
Further named arguments |
This is a wrapper around dynr.ggplot
. A great benefit of it is that it shows the model equations in a plot.
ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.