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

dynr.plotFreq

Plot of the estimated frequencies of the regimes across all individuals and time points based on their smoothed regime probabilities


Description

Plot of the estimated frequencies of the regimes across all individuals and time points based on their smoothed regime probabilities

Usage

dynr.plotFreq(res, dynrModel, names.regime, title, xlab, ylab, textsize = 12,
  print = TRUE)

Arguments

res

The dynr object returned by dynr.cook().

dynrModel

The model object to plot.

names.regime

(optional) Names of the regimes (must match the length of the number of regimes)

title

(optional) Title of the plot.

xlab

(optional) Label of the x-axis.

ylab

(optional) Label of the y-axis.

textsize

(default = 12) Text size for the axis labels and title (= textsize + 2).

print

(default = TRUE) A flag for whether the plot should be printed.

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.