#
18. Violin plot
#
Introduction
A violin plot is a method of plotting numeric data and can be understood as a combination of a box plot and a kernel density plot. It shows the distribution of the data across different categories, indicating the probability density of the data at different values. Violin plots are particularly useful for comparing the distribution of the data between different groups.
Key features of a violin plot:
- It displays the distribution of the data across several levels.
- The width of the plot at different values represents the density of the data.
- It can include a marker for the median of the data and a box indicating the interquartile range.
- Violin plots are useful for visualizing the distribution and frequency of the data, especially when comparing multiple groups.
#
Example
#
Message
Create a violin plot of BRAF protein expression by gender with boxplots and the Wilcoxon test p-value annotated.
#
Results