Giter VIP home page Giter VIP logo

vioplotx's Introduction

vioplot

Development Version 0.2.0.9001

CRAN_Status_Badge Travis Build Status AppVeyor Build Status Project Status: Moved to https://github.com/TomKellyGenetics/vioplot โ€“ The project has been moved to a new location, and the version at that location should be considered authoritative. 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 as vioplotx::vioplotx() to plot a violin for each group of variables.

  • vioplotx::vioplotx() also takes additional arguments to specify main, sub, xlab, and ylab as used in plot or title

  • vioplotx::vioplotx() 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.

  • vioplotx::vioplotx.formula() is enabled to take formula and dataframe inputs as used for boxplot and stats operations.

  • additional areaEqual, plotCentre and side options 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:

vioplotx's People

Contributors

tmelliott avatar tomkellygenetics avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

boxizhang

vioplotx's Issues

Area of Violin

Aniruddha Chatterje:

One thing about the standard vioplot frustrates me is that it doesn't draw an equal area for similar data. Do you think you an add that functionality?

Species names that include non alpha characters

After experimenting with vioplot, i was interested to try vioplotx for the added customisation but unlike the original, this version gives an "unexpected symbol" error with species names in the format such as 'H. sapiens'

Is this an intended change from the original or an error somewhere in the code? Any suggestions how to run with names in that format?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.