add_data_to_plot: Add exposure/test data to a plot as points or ellipse

add_exposure_data_to_1D_plotR Documentation

Add exposure/test data to a plot as points or ellipse

Description

Add exposure/test data as points or ellipse to a ggplot2. For the 1D functions, the x-axis is assumed to be a phonetic cue. For the 2D functions, the x- and y-axes are assumed to be phonetic cues. The difference between adding exposure and test data is whether the data are colored by the category (exposure) or not (test).

Usage

add_exposure_data_to_1D_plot(
  data,
  cue.labels,
  category.ids,
  category.labels,
  category.colors
)

add_test_data_to_1D_plot(data, cue.labels)

add_exposure_data_to_2D_plot(
  data,
  cue.labels,
  category.ids,
  category.labels,
  category.colors
)

add_test_data_to_2D_plot(data, cue.labels)

add_exposure_summary_to_1D_plot(data)

add_exposure_summary_to_2D_plot(data, level = 0.95)

Arguments

data

A 'tibble' or 'data.frame'. For plotting points, this table must contain columns named in 'cue.labels'. For ellipsis plots, the table must contain the columns 'mean' and 'cov'.

cue.labels

Name of the columns in 'data' that contain the cue values of the data to be plotted.

level

Level of probability mass for which ellipsis should be plotted (default: .95)

Value

A list of geoms.

See Also

TBD


hlplab/MVBeliefUpdatr documentation built on March 29, 2025, 10:42 p.m.