geom_flat_violin: Flat violin geom by Ben Marwick

Description Usage Arguments Examples

View source: R/geom_flat_violin.R

Description

Create flat violin plot with ggplot2 with geom_flat_violin. Shamelessly copy-pasted from Ben Marwick.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
geom_flat_violin(
  mapping = NULL,
  data = NULL,
  stat = "ydensity",
  position = "dodge",
  trim = TRUE,
  scale = "area",
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)

Arguments

mapping

A value

data

A value

stat

A value

position

A value

trim

A value

scale

A value

show.legend

A value

inherit.aes

A value

...

A value

Examples

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

iholzleitner/facefuns documentation built on March 19, 2021, 2:43 p.m.