Compose Half-Half Plots Using Your Favourite Geoms

A 'ggplot2' extension for easy plotting of half-half geom combinations. Think half boxplot and half jitterplot, or half violinplot and half dotplot.


R-CMD-check CRAN_Release_Badge CRAN_Download_Badge

About

gghalves makes it easy to compose your own half-half plots via ggplot2. Think displaying a boxplot next to jittered points, or violin plots side by side with dotplots.

Installation

gghalves can be installed via GitHub:

if (!require(devtools)) {
    install.packages('devtools')
}
devtools::install_github('erocoar/gghalves')

Features

gghalves adds _half_ extensions to selected geoms:

  • geom_half_boxplot
  • geom_half_violin
  • geom_half_point

All of them have a side argument that can be either l for left or r for right half. As a special case there is also geom_half_dotplot to support half dotplots that dodge aesthetics such as fill and colour.

gghalves also works well with other ggplot2 geoms and extensions such as geom_dotplot and ggbeeswarm::geom_beeswarm.

Features

Roadmap

Generally, I hope to add more features over time. If you would like to see a certain feature, please open an issue.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("gghalves")

0.1.4 by Frederik Tiedemann, 4 years ago


https://github.com/erocoar/gghalves


Browse source code at https://github.com/cran/gghalves


Authors: Frederik Tiedemann [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports grid, gtable, grDevices

Depends on ggplot2

Suggests knitr, rmarkdown, dplyr


Suggested by pcutils.


See at CRAN