7 Chart: Violin Plot

This chapter originated as a community contribution created by AshwinJay101

This page is a work in progress. We appreciate any input you may have. If you would like to help improve this page, consider contributing to our repo.

7.1 Overview

This section covers how to make violin plots.

7.4 Description

Violin plots are similar to box plots. The advantage they have over box plots is that they allow us to visualize the distribution of the data and the probability density. We can think of violin plots as a combination of boxplots and density plots.

This plot type allows us to see whether the data is unimodal, bimodal or multimodal. These simple details will be hidden in the boxplot. The distribution can be seen through the width of the violin plot.

7.5 When to use

Violin plots should be used to display continuous variables only.

7.6 External Resources

  • ggplot2 Violin Plot: Excellent resource for showing the various customizations that can be added to the violin plot.