Visualize the Distribution of Confidence Values per Keypoint
Source:R/check_confidence.R
check_confidence.Rdcheck_confidence() computes summary statistics for confidence values
grouped by a chosen variable (defaulting to keypoint) and returns a
tidy data frame that can be visualized with standard plotting functions.
Arguments
- data
A data frame that contains at least the columns
keypointandconfidence. Additional grouping variables can be supplied via thebyargument.- ...
Arguments passed down to the plotting functions.
- by
(Optional) A character vector or column name(s) used to group the data before summarising. If
NULL, the function defaults to"keypoint".
Value
A tibble/data frame with one row per group defined by by,
containing the following columns:
- mean_confidence
Mean of
confidencewithin the group (NA‑removed).- q1
First quartile (25th percentile) of
confidence.- q3
Third quartile (75th percentile) of
confidence.
The result can be passed directly to ggplot2 or other visualization
packages.