plot_effective_size_conf: Plot Effective Size by Confidence Level

View source: R/ppv_range_plots.R

plot_effective_size_confR Documentation

Plot Effective Size by Confidence Level

Description

Creates a ggplot visualization showing how effective lineup size varies across confidence levels.

Usage

plot_effective_size_conf(
  ppv_range_obj,
  show_nominal = TRUE,
  show_points = TRUE
)

Arguments

ppv_range_obj

A lineup_ppv_range object from ppv_range_by_confidence(), or a dataframe with columns: confidence, effective_size

show_nominal

Logical. Whether to show nominal lineup size as reference line (default = TRUE)

show_points

Logical. Whether to show points at each confidence level (default = TRUE)

Details

Effective size < nominal size suggests lineup bias, where some members are implausible and rarely chosen. This can vary by confidence level if witnesses at different confidence levels have different lineup viewing strategies.

A horizontal line at the nominal lineup size provides a reference. Values below this line suggest bias. Values at or above it do not establish a fair lineup, because the plug-in estimate from sparse bins is biased (see the small-sample bias section of esize_T).

Value

A ggplot2 object

Examples

data(lineup_example)
ppv_range <- ppv_range_by_confidence(lineup_example,
                                     confidence_bins = c(0, 60, 80, 100))
plot_effective_size_conf(ppv_range)


r4lineups documentation built on Nov. 10, 2026, 1:08 a.m.