dynr.plotFreq: Plot of the estimated frequencies of the regimes across all...

View source: R/dynrPlot.R

dynr.plotFreqR Documentation

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 documentation built on May 29, 2024, 2:49 a.m.