Tukey Box Plot (1.5 IQR)
A vertical box plot showing median and lower and upper quartiles of the distribution of body mass of penguins.
View this example in the online editor
Vega-Lite JSON Specification
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "A vertical box plot showing median and lower and upper quartiles of the distribution of body mass of penguins.",
"data": {"url": "data/penguins.json"},
"mark": "boxplot",
"encoding": {
"x": {"field": "Species", "type": "nominal"},
"color": {"field": "Species", "type": "nominal", "legend": null},
"y": {
"field": "Body Mass (g)",
"type": "quantitative",
"scale": {"zero": false}
}
}
}