violinplot2: boxplot + violinplot with data

Description Usage Arguments Value Examples

Description

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

Usage

1
2
violinplot2(y, colors = viridis(5) %>% addAlpha(0.6), lab = NA,
  point_size = 1, height = 0.4, point_col = "black", ...)

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

point_color

color of the plotting characters

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
violinplot2(PlantGrowth, height=0.2)
violinplot2(iris %>% select(Species, Sepal.Length), xlab= "species", ylab="sepal length")

lukereding/redingPlot documentation built on May 21, 2019, 8:58 a.m.