geom_flat_violin: Half violin plot

Description Usage Arguments Source Examples

View source: R/geom_flat_violin.R

Description

Half violin plot

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

The mapping

data

data.frame

stat

statistic (don't change)

position

position dodge

trim

Logical

scale

Scale (don't change)

show.legend

Logical

inherit.aes

Logical

...

other arguments

Source

urlhttps://gist.github.com/dgrtwo/eb7750e74997891d7c20

Examples

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

sdamr documentation built on Nov. 19, 2020, 3 a.m.