Tutorial of Violin Plot in Base R Language with Examples
Introduction
In this tutorial, we will see how to create Violin Plot in Base R language which is very popular for providing packages for rich visualization. First, we will understand the syntax of vioplot() and then see how to use it for creating violin plot.
Syntax of Violin Plot vioplot() function in R
The basic syntax for vioplot() function is shown below with a few commonly used arguments. The detailed syntax can be found here.
vioplot(x,horizontal,col,rectCol,lineCol,colMed,border)
- x – It denotes the data