violinplot: boxplot + half of a violin plot

Description Usage Arguments Value Examples

View source: R/plotting_functions.R

Description

plots the distribution of each group as a boxplot + half a violinplot with the data jittered

Usage

1
2
violinplot(y, colors = "viridis", lab = NA, point_size = 1,
  height = 0.4, ...)

Arguments

y

either a list where len(list) == # of groups, or a dataframe

colors

colors to use for the violinplots. defaults to viridis colors

lab

labels for the groups. Each must be unique.

point_size

size of the plotting characters for the data

height

controls the size of the violinplots. defaults to 0.4 but your mileage will vary

Value

a list of length 2. First element of the list is your data coerced into a data.table. Second element is the group names.

Examples

1
2
violinplot(PlantGrowth)
violinplot(iris %>% select(Species, Sepal.Length), xlab= "species", ylab="sepal length")

lukereding/redingPlot documentation built on May 21, 2017, 3:44 p.m.