View source: R/eig_functions.R
| plot_eig | R Documentation |
Creates a ggplot2 visualization showing information gain for each response category in an EIG analysis.
plot_eig(eig_obj, max_responses = 15, color_by = "identification")
eig_obj |
A lineup_eig object from compute_eig() |
max_responses |
Maximum number of response categories to display (default = 15). Categories are sorted by information gain (highest first). |
color_by |
Character. Color bars by "identification" decision or "ig" (information gain). Default = "identification". |
This function creates a bar plot showing information gain for each response category. Response categories are ordered by IG (descending), with the most informative responses shown first. Colors distinguish different identification decisions (suspect/filler/reject).
A ggplot2 object
data(lineup_example)
eig_result <- compute_eig(lineup_example, confidence_bins = c(0, 60, 80, 100))
plot_eig(eig_result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.