Violin plot

Source code notebook

using InMemoryDatasets, StatisticalGraphics, DLMReader

Violin produces Violin plot

iris = filereader(joinpath(dirname(pathof(StatisticalGraphics)),
                                 "..", "docs", "assets", "iris.csv"))
sgplot(iris, Violin(x=1:4))

Passing side allows to draw only half of the density curve

sgplot(iris, Violin(x=1:4, side=:top))

Violin also support the category keyword argument

sgplot(iris, Violin(x=1:4, category=5))

This page was generated using DemoCards.jl and Literate.jl.