violin: Creates a violin plot splitting the data into groups This is...

violinR Documentation

Creates a violin plot splitting the data into groups This is just a slight variation on the vioplot function from the package 'vioplot' that I made so I could just pass a data variable and a grouping variable instead of splitting the data outside of the function, which is how vioplot works.

Description

Creates a violin plot splitting the data into groups This is just a slight variation on the vioplot function from the package 'vioplot' that I made so I could just pass a data variable and a grouping variable instead of splitting the data outside of the function, which is how vioplot works.

Usage

violin(x, splitBy = NULL, data, range = 1.5, h = NULL, ylim = NULL,
  names = NULL, horizontal = FALSE, col = "magenta",
  border = "black", lty = 1, lwd = 1, rectCol = "black",
  colMed = "white", pchMed = 19, at, add = FALSE, wex = 1,
  drawRect = TRUE, orders = NULL, xlab = NULL, ylab = NULL,
  main = NULL)

Arguments

x

is a quoted variable name that is the data that goes into violin plots

splitBy

is a variable used to split the data into groups

data

is a data.frame or data.able that contains the data

other

parameters are stolen from vioplot


evanchildress/plotHacks documentation built on July 29, 2022, 5 a.m.