ggViolin: Draw violin plots of a data.frame

Description Usage Arguments Examples

View source: R/ggViolin.R

Description

Draw violin plots of a data.frame

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ggViolin(
  data,
  mapping = NULL,
  rescale = FALSE,
  horizontal = FALSE,
  alpha = 0.1,
  addBoxplot = TRUE,
  addMean = TRUE,
  use.label = TRUE,
  use.labels = TRUE,
  ...
)

Arguments

data

a data.frame

mapping

Set of aesthetic mappings created by aes or aes_.

rescale

if true, rescale the data.frame

horizontal

if true, horizontal boxplots will be made

alpha

An integer. Default value is 0.1.

addBoxplot

Whether add boxplots on the plot

addMean

Whether add mean point on the plot

use.label

Logical. Whether or not use column label in case of labelled data

use.labels

Logical. Whether or not use value labels in case of labelled data

...

other arguments passed on to geom_boxplot_interactive

Examples

1
2
3
4
5
6
7
require(ggplot2)
require(ggiraph)
require(reshape2)
ggViolin(iris)
ggViolin(iris,aes(fill=Species),rescale=TRUE)
ggViolin(mtcars,aes(x=c(mpg,cyl,disp,hp,drat),color=am),rescale=TRUE)
ggViolin(mtcars,aes(x=c(mpg,cyl,disp,hp,drat)),rescale=TRUE)

cardiomoon/ggiraphExtra documentation built on Oct. 9, 2020, 4:16 a.m.