View source: R/visualization_faces.R
| plot_similarity_distribution | R Documentation |
Creates a histogram or density plot showing the distribution of face similarities, useful for understanding the range of similarities in a lineup or database.
plot_similarity_distribution(
similarities,
type = c("histogram", "density"),
threshold = NULL,
xlab = "Similarity",
title = "Distribution of Face Similarities"
)
similarities |
Numeric vector of similarity scores or distances. |
type |
Plot type: "histogram" or "density". |
threshold |
Optional threshold value to show as vertical line. |
xlab |
X-axis label. |
title |
Plot title. |
A ggplot2 object.
set.seed(123)
similarities <- rbeta(100, 2, 5)
plot_similarity_distribution(similarities, threshold = 0.6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.