dynr.plotFreq function

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

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

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.

Returns

ggplot object

  • Maintainer: Michael D. Hunter
  • License: GPL-3
  • Last published: 2023-11-28