Plot the Distribution of Tracking Confidence
Source:R/plot.check_confidence.R
plot.anivis_check_confidence.RdRenders a check_confidence() result (from the anicheck package) as a
horizontal violin per keypoint of its tracking confidence (keypoints on the y
axis, confidence on the x), with a point at the median and a line spanning the
inter-quartile range. A violin sitting far to the right and tight is a reliably
tracked keypoint; a left-shifted body or a long low tail flags one the tracker
was often unsure about. With several individuals, each gets its own panel.
Arguments
- x
A
check_confidenceobject (from the anicheck package).- ...
Additional arguments (currently unused).
- clip
Cut each violin where its density falls below this fraction of its peak, so thin tails and the neck bridging a bimodal distribution are removed and the violin shows only where data actually is. Default
0.02; set0to keep the full density.- mode
Either
"light"(default) or"dark"; passed totheme_imputets().
Details
The violins are drawn from the kernel-density grid stored in the check object
(via geom_polygon), so no raw values are needed. Styling matches the other
check plots (theme_imputets(), horizontal-only gridlines). The plot is built
from an intermediate frame of class anivis_check_confidence_data produced by
as_plot_data() — the staging step that mirrors data_plot() in see.