This is stars and forks stats for /thomasp85/patchwork repository. As of 10 May, 2024 this repository has 2273 stars and 156 forks.
patchwork 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 arbitrarily 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: Getting Started Assembling Plots Defining Layouts Adding Annotation Aligning across pages 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.
patchwork 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 arbitrarily 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: Getting Started Assembling Plots Defining Layouts Adding Annotation Aligning across pages 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.
repo | techs | stars | weekly | forks | weekly |
---|---|---|---|---|---|
frankwxu/digital-forensics-lab | RoffJupyter NotebookPython | 870 | 0 | 220 | 0 |
tnballo/high-assurance-rust | RustCSSOther | 1.2k | 0 | 29 | 0 |
huggingface/tokenizers | RustPythonJupyter Notebook | 7.7k | 0 | 649 | 0 |
launchbadge/sqlx | RustOther | 10.1k | 0 | 983 | 0 |
copy/v86 | RustJavaScriptC | 18.3k | 0 | 1.3k | 0 |
Wilfred/difftastic | RustOther | 15.5k | 0 | 252 | 0 |
killercup/cargo-edit | Rust | 2.9k | 0 | 148 | 0 |
andrewbanchich/forty-jekyll-theme | SCSSJavaScriptHTML | 977 | +5 | 2k | -2 |
Esri/calcite-web | SCSSJavaScriptRuby | 105 | 0 | 58 | 0 |
abhinavs/moonwalk | SCSSHTMLRuby | 284 | 0 | 399 | 0 |