geom_flat_violin: geom_flat_violin

Description Usage Arguments Value Author(s) Examples

Description

flat violin geom

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, ...)

Arguments

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

Value

ggplot layer

Author(s)

David Robinson

Examples

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

shijianasdf/BasicBioinformaticsAnalysisFromZhongShan documentation built on Jan. 3, 2020, 10:08 p.m.