plot_expected_categorization_function_1D: Plot expected categorization function for univariate (1D)...

View source: R/visualize-NIW-IA-simulation.R

plot_expected_categorization_function_1DR Documentation

Plot expected categorization function for univariate (1D) categories.

Description

Plot categorization function for univariate Gaussian categories expected given NIW parameters.

Usage

plot_expected_categorization_function_1D(
  x,
  data.exposure = NULL,
  data.test = NULL,
  target_category = 1,
  logit = F,
  xlim,
  ylim = NULL,
  x.expand = c(0, 0),
  facet_rows_by = NULL,
  facet_cols_by = NULL,
  facet_wrap_by = NULL,
  animate_by = NULL,
  animation_follow = F,
  category.ids = NULL,
  category.labels = NULL,
  category.colors = NULL,
  category.linetypes = NULL,
  ...
)

Arguments

x

An NIW_belief or NIW_beliefs object.

data.exposure

Optional tibble or data.frame that contains exposure data to be plotted. (default: 'NULL')

data.test

Optional tibble or data.frame that contains test data to be plotted. (default: 'NULL')

target_category

The index of the category for which categorization should be shown. (default: '1')

logit

Should the categorization function be plotted in logit ('TRUE') or probabilities ('FALSE')? (default: 'FALSE')

xlim, ylim

Limits for the x- and y-axis.

facet_rows_by, facet_cols_by, facet_wrap_by, animate_by

Which group variables, if any, should be used for faceting and/or animation? (defaults: 'NULL')

animation_follow

Should the animation follow the data (zoom in and out)? (default: 'FALSE')

category.ids

Vector of category IDs to be plotted or leave 'NULL' to plot all groups. (default: 'NULL')

category.labels

Vector of group labels of same length as 'category.ids' or 'NULL' to use defaults. (default: 'NULL')

category.colors

Vector of colors of same length as category.ids or 'NULL' to use defaults. (default: 'NULL')

category.linetypes

Vector of linetypes of same length as category.ids or 'NULL' to use defaults. (default: 'NULL') Currently being ignored.

...

additional arguments to geom_line.

Value

ggplot object.

See Also

TBD


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