BoxPlot
Builder for creating box plots (box-and-whisker plots). Displays the five-number summary for one or more groups of values. Whiskers use the Tukey 1.5×IQR rule; values outside the whiskers are not drawn automatically (use an overlay to show individual points). Groups are rendered side-by-side in the order they are added.Constructor
Create a box plot with default settings.Defaults:
- Color:
"black" - Box width:
0.8(as a fraction of category slot) - Overlay color:
"rgba(0,0,0,0.45)" - Overlay point size:
3.0pixels - No overlay
Data Methods
Styling Methods
"steelblue"). This color is applied to all boxes. Use the same color for all groups and distinguish them by position, or layer multiple BoxPlot instances in a Vec<Plot> with different colors.0.8).Overlay Methods
jitter controls the horizontal spread of the points (in data units). A value of 0.2 is a reasonable default. Points are placed on top of the box — use a semi-transparent with_overlay_color so the box remains visible underneath."rgba(0,0,0,0.45)"). A semi-transparent color is recommended so the box underneath remains visible.3.0).Legend Methods
Types
BoxGroup
A single group (one box) with a category label and raw values. Fields:label: String- Category labelvalues: Vec<f64>- Raw data values