View source: R/visualize-NIW-IA-simulation.R
plot_expected_categorization_function_2D | R Documentation |
Plot categorization function for bivariate Gaussian categories expected given NIW parameters.
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,
...
)
x |
An |
data.exposure |
Optional |
data.test |
Optional |
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. |
ggplot object.
TBD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.