plotFreq {TreeBUGS} | R Documentation |
Plot Raw Frequencies
Description
Plot observed individual and mean frequencies.
Usage
plotFreq(x, freq = TRUE, select = "all", boxplot = TRUE, eqnfile, ...)
Arguments
x |
either a fitted hierarchical MPT model (see |
freq |
whether to plot absolute frequencies or relative frequencies
(which sum up to one within each tree; only if |
select |
a numeric vector with participant indices to select which raw
frequencies to plot (default: |
boxplot |
if |
eqnfile |
optional: EQN description of an MPT model, that is, either the
path to an EQN file or as a character string (only used if |
... |
further arguments passed to |
Examples
# get frequency data and EQN file
freq <- subset(arnold2013, group == "encoding", select = -(1:4))
eqn <- system.file("MPTmodels/2htsm.eqn", package = "TreeBUGS")
plotFreq(freq, eqnfile = eqn)
plotFreq(freq, freq = FALSE, eqnfile = eqn)