Vioplotx
A development version of the vioplot R package. This has been migrated to "vioplot" as version 0.3.
Install / Use
/learn @TomKellyGenetics/VioplotxREADME
vioplot
Development Version 0.2.0.9001
to https://github.com/TomKellyGenetics/vioplot
Violin Plots in R
This package allows extensive customisation of violin plots.
Migration
This is a development branch of the vioplot 0.3 release. The package has been migrated to:
https://github.com/TomKellyGenetics/vioplot
Installation
To get the current released version from CRAN:
install.packages("vioplot")
To get the modified version from github:
# install.packages("devtools")
devtools::install_github("TomKellyGenetics/vioplotx")
Running
See the relevant vignette for more details:
- Customising colour and shape with scalar inputs or vectors applied separately to each violin.
https://rawgit.com/TomKellyGenetics/vioplotx/master/vignettes/violin_customisation.html
- Formula input enabled with S3 methods.
https://rawgit.com/TomKellyGenetics/vioplotx/master/vignettes/violin_formulae.html
- Control of violin area for proportional widths
https://rawgit.com/TomKellyGenetics/vioplotx/master/vignettes/violin_area.html
- Control of the y-axis including disabling labels and log-scale
https://rawgit.com/TomKellyGenetics/vioplotx/master/vignettes/violin_ylog.html
- Split violins to directly compare paired data.
https://rawgit.com/TomKellyGenetics/vioplotx/master/vignettes/violin_split.html
Functionality
vioplotx works in much the same manner as vioplot:
-
vioplotx::vioplotx()generates a violin plot takes the same arguments asvioplotx::vioplotx()to plot a violin for each group of variables. -
vioplotx::vioplotx()also takes additional arguments to specifymain,sub,xlab, andylabas used inplotortitle -
vioplotx::vioplotx()can take vectorised forms of colour variablescol,border, andrectColto modify the colours separately for each violin respectively. This also applies to a new variablelineColto modify the colour of the boxplots. -
vioplotx::vioplotx.formula()is enabled to take formula and dataframe inputs as used for boxplot and stats operations. -
additional
areaEqual,plotCentreandsideoptions enables further customisation.
Development and sources
For development history 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
-
https://gist.github.com/mbjoseph/5852613
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
