plot_expected_categorization_function_2D: Plot expected categorization function for bivariate (2D)...

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

plot_expected_categorization_function_2DR Documentation

Plot expected categorization function for bivariate (2D) categories.

Description

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

Usage

plot_expected_categorization_function_2D(
  x,
  data.exposure = NULL,
  data.test = NULL,
  target_category = 1,
  logit = F,
  xlim,
  ylim,
  resolution = 25,
  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.

resolution

How many steps along x and y should be calculated? Note that computational complexity increases quadratically with resolution. (default: 25)

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 handed to geom_polygon.

Value

ggplot object.

See Also

TBD


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