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.