Description Usage Details Examples
View source: R/geom-flat-violin.R
ggplot Flat Violin
1 2 3 |
Copy-pasted from https://gist.githubusercontent.com/benmarwick/2a1bb0133ff568cbe28d/raw/fb53bd97121f7f9ce947837ef1a4c65a73bffb3f/geom_flat_violin.R somewhat hackish solution to: https://twitter.com/EamonCaddigan/status/646759751242620928 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 | :
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.