powered by
This tool creates violin plots corresponding to each genotype.
Viol.by.gen(qt, g, trait_name = "qt trait", title = "")
A violin plot
A numeric vector.
An integer vector.
A string.
n_val <- 50000L geno_vec <- sample(c(0, 1, 2), size = n_val, replace = TRUE) qt_vec <- rnorm(n_val) * (1.3^geno_vec) + 1 * geno_vec Viol.by.gen(qt_vec, geno_vec)
Run the code above in your browser using DataLab