Description Usage Arguments Value Author(s) Examples
flat violin geom
1 2 3 |
mapping |
aesthetic mapping |
data |
the data to display in this layer |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
position adjustment |
trim |
If ‘TRUE’ (default), trim the tails of the violins to the range of the data. If ‘FALSE’, don't trim the tails. |
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 |
whether show the legend of this layer |
inherit.aes |
whether inherit aesthetic mapping from 'ggplot' |
... |
additional parameters |
ggplot layer
David Robinson
1 2 3 4 | library(ggplot2)
ggplot(diamonds, aes(cut, carat)) +
geom_flat_violin() +
coord_flip()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.