This function serves the same utility as side-by-side boxplots, only it provides more detail about the different distribution. It plots violinplots instead of boxplots. That is, instead of a box, it uses the density function to plot the density. For skewed distributions, the results look like "violins". Hence the name.
Either a sequence of variable names, or a data frame, or a model formula
You can pass arguments to polygon with this. Notably, you can set the color to red with col='red', and a border color with border='blue'
Returns a plot.
This is really the boxplot function from R/base with some minor adjustments
1 2 3 4 5 6
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.