geom_flat_violin: ggplot Flat Violin

Description Usage Details Examples

View source: R/geom-flat-violin.R

Description

ggplot Flat Violin

Usage

1
2
3
geom_flat_violin(mapping = NULL, data = NULL, stat = "ydensity",
  position = "dodge", trim = TRUE, scale = "area",
  show.legend = NA, inherit.aes = TRUE, ...)

Details

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

Examples

1
2
3
4
:
ggplot(diamonds, aes(cut, carat)) +
  geom_flat_violin() +
  coord_flip()

kholsteen/geneRal documentation built on Jan. 20, 2020, 7:51 p.m.