Development version of vioplot R package (CRAN maintainer)
This package allows extensive customisation of violin plots.
To get the current released version from CRAN:
install.packages("vioplot")
To get the development version from github:
# install.packages("devtools")
devtools::install_github("TomKellyGenetics/vioplot", ref = "dev")
See the relevant vignette for more details:
https://rawgit.com/TomKellyGenetics/vioplot/vignettes/vignettes/violin_customisation.html
https://rawgit.com/TomKellyGenetics/vioplot/vignettes/vignettes/violin_formulae.html
https://rawgit.com/TomKellyGenetics/vioplot/vignettes/vignettes/violin_area.html
https://rawgit.com/TomKellyGenetics/vioplot/vignettes/vignettes/violin_ylog.html
https://rawgit.com/TomKellyGenetics/vioplot/vignettes/vignettes/violin_split.html
vioplot (0.3) is backwards-compatible with vioplot (0.2). The following features are supported:
vioplot()
generates a violin plot by plotting a violin for each group of variables.
vioplot()
also takes additional arguments to specify main
, sub
, xlab
, and ylab
as used in plot
or title
. Graphical parameters can be passed to plotting parameters.
vioplot()
can take vectorised forms of colour variables col
, border
, and rectCol
to modify the colours separately for each violin respectively. This also applies to a new variable lineCol
to modify the colour of the boxplots.
vioplot.formula()
is enabled to take formula and dataframe inputs as used for boxplot and stats operations. The default axes labels are the variable names used for the formula and names are factor levels.
additional areaEqual
, plotCentre
and side
options enables further customisation.
See the NEWS.md file for more detail on added features in the 0.3 release.
For development history of version 0.3.0 prior to package documentation, see the original repo: https://github.com/TomKellyGenetics/R-violin-plot/commits?author=TomKellyGenetics
Modifications inspired by the following StackOverFlow threads and GitHub Gists:
http://stackoverflow.com/questions/14975853/how-can-i-create-violin-plot-in-different-colours
http://stackoverflow.com/questions/19416768/vioplot-r-how-to-set-axis-labels
http://stackoverflow.com/questions/20250063/axis-titles-on-vioplot
http://stackoverflow.com/questions/22410606/violin-plot-with-list-input
This repository is a proposed submission for an updated version of the vioplot originally released by Daniel Adler (University of Göttingen, Germany) on CRAN. This package has been orphaned on CRAN and is no longer actively maintained. I acknowledge with contributions of Daniel Adler as the original developer and Tom Elliot (University of Auckland, New Zealand) for a pull request and welcome further contributions to improve or maintain this package.
This package update was developed and released open-source (in accordance with the original package BSD License) while as a PhD candidate at the University of Otago (Dunedin, New Zealand). I can be contacted at my present address and affiliation is (RIKEN Centre for Integrative Medical Sciences, Yokohama, Japan) at <tom.kelly[at]riken.jp>.
The following information can be retrieved from within an R session by using citation(vioplot)
. Please acknowledge as follows if features included in this version are used.
To cite the enhanced vioplot package in publications use:
Daniel Adler and S. Thomas Kelly (2024). vioplot: violin plot. R package version 0.5.0
https://github.com/TomKellyGenetics/vioplot
A BibTeX entry for LaTeX users is
@Manual{,
title = {vioplot: violin plot},
author = {Daniel Adler, S. Thomas Kelly, Tom Elliot, and Jordan Adamson},
year = {2024},
note = {R package version 0.5.0},
url = {https://github.com/TomKellyGenetics/vioplot},
}
Please also acknowledge the original package: citation(“vioplot”)