All Projects → thomasp85 → Patchwork

thomasp85 / Patchwork

Licence: other
The Composer of ggplots

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Patchwork

Calendr
Ready to print calendars with ggplot2
Stars: ✭ 161 (-91.96%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Ggcats
The geom you always wished for adding cats to ggplot2
Stars: ✭ 34 (-98.3%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Hrbrthemes
🔏 Opinionated, typographic-centric ggplot2 themes and theme components
Stars: ✭ 899 (-55.09%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Ggbernie
A ggplot2 geom for adding Bernie Sanders to ggplot2
Stars: ✭ 96 (-95.2%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Ggalt
🌎 Extra Coordinate Systems, Geoms, Statistical Transformations & Scales for 'ggplot2'
Stars: ✭ 561 (-71.98%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Ggpointdensity
📈 📊 Introduces geom_pointdensity(): A Cross Between a Scatter Plot and a 2D Density Plot.
Stars: ✭ 286 (-85.71%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Econocharts
Microeconomics/macroeconomics charts in ggplot2
Stars: ✭ 161 (-91.96%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Ggsignif
Easily add significance brackets to your ggplots
Stars: ✭ 322 (-83.92%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Ggforce
Accelerating ggplot2
Stars: ✭ 640 (-68.03%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Gganimate
A Grammar of Animated Graphics
Stars: ✭ 1,744 (-12.89%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Tidymv
Tidy Model Visualisation for Generalised Additive Models
Stars: ✭ 25 (-98.75%)
Mutual labels:  ggplot2, rstats
Geowaffle
Combining waffle plot with geofacet
Stars: ✭ 26 (-98.7%)
Mutual labels:  ggplot2, rstats
Ggh4x
ggplot extension: options for tailored facets, multiple colourscales and miscellaneous
Stars: ✭ 148 (-92.61%)
Mutual labels:  ggplot2, ggplot-extension
Ggdistribute
ggplot2 extension for plotting distributions
Stars: ✭ 16 (-99.2%)
Mutual labels:  ggplot2, ggplot-extension
Ggrepel
📍 Repel overlapping text labels away from each other.
Stars: ✭ 853 (-57.39%)
Mutual labels:  ggplot2, rstats
Ggraph
Grammar of Graph Graphics
Stars: ✭ 815 (-59.29%)
Mutual labels:  ggplot2, ggplot-extension
Ggthemr
Themes for ggplot2.
Stars: ✭ 697 (-65.18%)
Mutual labels:  ggplot2, rstats
Ggplot Courses
👨‍🏫 ggplot2 Teaching Material
Stars: ✭ 40 (-98%)
Mutual labels:  ggplot2, rstats
Soccergraphr
Soccer Analytics in R using OPTA data
Stars: ✭ 42 (-97.9%)
Mutual labels:  ggplot2, rstats
Lemon
🍋 Lemon --- Freshing up your ggplots
Stars: ✭ 147 (-92.66%)
Mutual labels:  ggplot2, ggplot-extension

patchwork

R build status CRAN_Release_Badge CRAN_Download_Badge Lifecycle: experimental Codecov test coverage

The goal of patchwork is to make it ridiculously simple to combine separate ggplots into the same graphic. As such it tries to solve the same problem as gridExtra::grid.arrange() and cowplot::plot_grid but using an API that incites exploration and iteration, and scales to arbitrily complex layouts.

Installation

You can install patchwork from CRAN using install.packages('patchwork'). Alternatively you can grab the development version from github using devtools:

# install.packages("devtools")
devtools::install_github("thomasp85/patchwork")

Basic example

The usage of patchwork is simple: just add plots together!

library(ggplot2)
library(patchwork)

p1 <- ggplot(mtcars) + geom_point(aes(mpg, disp))
p2 <- ggplot(mtcars) + geom_boxplot(aes(gear, disp, group = gear))

p1 + p2

patchwork provides rich support for arbitrarily complex layouts with full alignment. As an example, check out this very readable code for nesting three plots on top of a third:

p3 <- ggplot(mtcars) + geom_smooth(aes(disp, qsec))
p4 <- ggplot(mtcars) + geom_bar(aes(carb))

(p1 | p2 | p3) /
      p4

Learn more

patchwork can do so much more. Check out the guides for learning everything there is to know about all the different features:

Code of Conduct

Please note that the patchwork project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].