Box Plots

Box Plot with Min/Max Whiskers

using VegaLite, VegaDatasets

dataset("population") |>
@vlplot(
    mark={:boxplot, extent="min-max"},
    x="age:o",
    y={:people, axis={title="population"}}
)
051015202530354045505560657075808590age02,000,0004,000,0006,000,0008,000,00010,000,00012,000,000population

Tukey Box Plot (1.5 IQR)

using VegaLite, VegaDatasets

dataset("population") |>
@vlplot(
    mark={:boxplot, extend=1.5},
    x="age:o",
    y={:people, axis={title="population"}},
    size={value=5}
)
051015202530354045505560657075808590age02,000,0004,000,0006,000,0008,000,00010,000,00012,000,000people, population, population