
Draw violin plots of a data.frame
ggViolin(
data,
mapping = NULL,
rescale = FALSE,
horizontal = FALSE,
alpha = 0.1,
addBoxplot = TRUE,
addMean = TRUE,
use.label = TRUE,
use.labels = TRUE,
...
)
a data.frame
Set of aesthetic mappings created by aes or aes_.
if true, rescale the data.frame
if true, horizontal boxplots will be made
An integer. Default value is 0.1.
Whether add boxplots on the plot
Whether add mean point on the plot
Logical. Whether or not use column label in case of labelled data
Logical. Whether or not use value labels in case of labelled data
other arguments passed on to geom_boxplot_interactive
# NOT RUN {
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)
# }
Run the code above in your browser using DataLab