Skip to content

dezeraecox-utilities/RainCloud_Plotter

 
 

Repository files navigation

PtitPrince

A python iplementation of the Raincloud plot...Work in progress!

I tried to port to python the Raincloud plot (or PetitPrince plot, depending on the orientation) from R (under ggplot2) to Python. The Raincloud plot is a variant of the violin plot written in R ggplot2 by Micah Hallen. Everithing started with this xkcd comic, making fun of the violin plot.

xkcd


I found a tweet asking for a .py version, and I agreed. Alas, the py version for ggplot2 does not allow to create new styles in a confortable way. So I decided to use the seaborn library and to rewrite a bit the violin_plot function. This is the rewitten version.


Then I tried to replicate the plots from the original post by Micah Hallen, using Jupyter.

Plans for the future:

  • ask seaborn mantainers to add this new plot type
  • add a "move" option in seabon to control the positioning of each plot, as in ggplot2.

About

python version of raincloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 96.9%
  • Python 3.1%