complex_figure_examples icon indicating copy to clipboard operation
complex_figure_examples copied to clipboard

Gallery and R code for published scientific figures

ggplot scientific figure gallery

This repo hosts R code for creating non-trivial figures inspired from actual scientific articles.
Everything is done in R using the packages ggplot2,cowplot, and sometimes patchwork. When the original data is provided in a supplement it's used here, but otherwise data is simulated to produce a similar looking figure. The point is not to reproduce a figure exactly pixel by pixel, but give an example on how to structure and build them from scratch.

Gallery