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

plotFreq

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 traitMPT, betaMPT); or a matrix/data frame of response frequencies (can be provided as a path to a .csv-file with individual frequencies).

freq

whether to plot absolute frequencies or relative frequencies (which sum up to one within each tree; only if x is a hierarchical model or if eqnfile is provided)

select

a numeric vector with participant indices to select which raw frequencies to plot (default: "all")

boxplot

if FALSE, lines and points are drawn instead of boxplots

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 x refers to a matrix/data frame or .csv-file)

...

further arguments passed to boxplot and plot

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)

TreeBUGS

Hierarchical Multinomial Processing Tree Modeling

v1.4.7
GPL-3
Authors
Daniel W. Heck [aut, cre] (<https://orcid.org/0000-0002-6302-9252>), Nina R. Arnold [aut, dtc], Denis Arnold [aut], Alexander Ly [ctb], Marius Barth [ctb] (<https://orcid.org/0000-0002-3421-6665>)
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.