View source: R/visualization_faces.R
| plot_lineup_similarity | R Documentation |
Creates a bar plot showing the similarity of each foil to the target face, describing scores in a recognition model's embedding space, not measuring or certifying lineup fairness.
plot_lineup_similarity(
lineup,
show_threshold = TRUE,
use_similarity = TRUE,
title = NULL,
colors = NULL
)
lineup |
A lineup_similarity object from |
show_threshold |
Logical. If TRUE, adds a horizontal line at the verification threshold. Default is TRUE. |
use_similarity |
Logical. If TRUE, plots similarity scores (higher = more similar). If FALSE, plots distance (lower = more similar). Default is TRUE. |
title |
Optional plot title. |
colors |
Color palette for bars. Default uses a gradient from blue (dissimilar) to red (similar). |
A ggplot2 object.
## Not run:
lineup <- lineup_similarity("target.jpg", foil_paths)
plot_lineup_similarity(lineup)
# Show distance instead of similarity
plot_lineup_similarity(lineup, use_similarity = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.