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)
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.ggplot object