Skip to content

Instantly share code, notes, and snippets.

View KamilSJaron's full-sized avatar
🫀
back to k-mers

Kamil S. Jaron KamilSJaron

🫀
back to k-mers
View GitHub Profile
@KamilSJaron
KamilSJaron / vioplot2
Created May 28, 2017 08:51 — forked from mbjoseph/vioplot2.R
Slight change to the vioplot function from Daniel Adler that plots median lines instead of points, and gives the option to plot either side of a violin rather than always both.
vioplot2 <- function (x, ..., 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, side="both")
{
datas <- list(x, ...)
n <- length(datas)
if (missing(at))
at <- 1:n
upper <- vector(mode = "numeric", length = n)