Description Usage Arguments Value
View source: R/geom_flat_violin.R
The source code from the solution to:
https://twitter.com/EamonCaddigan/status/646759751242620928
The url of the source code is:
This function based mostly on copy/pasting from ggplot2 geom_violin source:
https://github.com/hadley/ggplot2/blob/master/R/geom-violin.r
1 2 3 4 5 6 7 8 9 10 11 |
mapping |
Set of aesthetic mappings. |
data |
The data to be displayed in this layer. |
stat |
The statistical transformation to use on the data for this layer. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
trim |
whether trim the tails of the violins to the range of the data. |
scale |
if "area" (default), all violins have the same area (before trimming the tails). If "count", areas are scaled proportionally to the number of observations. If "width", all violins have the same maximum width. |
show.legend |
logical. Should this layer be included in the legends? |
inherit.aes |
whether inherit aesthetic mapping from 'ggplot' |
... |
additional parameters |
One side flat of geom_violin in ggplot2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.