Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.dynrCook

Plot method for dynrCook objects


Description

Plot method for dynrCook objects

Usage

## S3 method for class 'dynrCook'
plot(x, dynrModel, style = 1, names.state, names.observed,
  printDyn = TRUE, printMeas = TRUE, textsize = 4, ...)

Arguments

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

Details

This is a wrapper around dynr.ggplot. A great benefit of it is that it shows the model equations in a plot.

Value

ggplot object.


dynr

Dynamic Models with Regime-Switching

v0.1.16-2
GPL-3
Authors
Lu Ou [aut], Michael D. Hunter [aut, cre] (<https://orcid.org/0000-0002-3651-6709>), Sy-Miin Chow [aut] (<https://orcid.org/0000-0003-1938-027X>), Linying Ji [aut], Meng Chen [aut], Hui-Ju Hung [aut], Jungmin Lee [aut], Yanling Li [aut], Jonathan Park [aut], Massachusetts Institute of Technology [cph], S. G. Johnson [cph], Benoit Scherrer [cph], Dieter Kraft [cph]
Initial release
2021-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.