Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetaPlots

A gallery of the graphics used or proposed for evidence synthesis: pairwise meta-analysis, network meta-analysis, and indirect treatment comparisons, including population-adjusted methods (MAIC, STC, ML-NMR, NMI, ML-UMR). Every entry shows a figure rendered from real R code, explains how to read it, lists common misreadings, and gives references.

Site: https://choxos.github.io/MetaPlots/

Structure

_quarto.yml            Quarto website configuration
index.qmd              Gallery home page
guide.qmd, about.qmd   Reporting guide and about page
methods/*.qmd          One landing page per method
plots/<family>/*.qmd   One page per plot
R/plots/<name>.R       The script that draws each figure (same name as its page)
R/models/*.R           Shared models used by several figures (fits are cached in R/cache/)
R/render.R             Renders figures to figs/<name>.png
_templates/, assets/   Gallery template, theme, Lua filter, and scripts
docs/                  Rendered site (published by GitHub Pages)

The code shown on each page is read directly from R/plots/<name>.R by the Lua filter in assets/metaplots.lua, so the displayed code is always the code that produced the figure.

Building

Requirements: R (4.4 or later) with the packages loaded in R/plots/*.R, and Quarto (1.5 or later).

Rscript R/render.R                # render every figure (slow: several Bayesian models)
Rscript R/render.R forest-plot    # render selected figures
quarto render                     # build the site into docs/

MP_CORES sets how many figures render in parallel (default 4). Bayesian figures that share a model reuse the cached fit in R/cache/ until the model file changes.

Publishing

The site is built into docs/. In the repository settings, set GitHub Pages to deploy from the main branch and the /docs folder.

Adding a plot

  1. Write R/plots/<name>.R and add its size to R/render.R if the default does not fit.
  2. Run Rscript R/render.R <name>.
  3. Write plots/<family>/<name>.qmd using an existing page as a template (front matter fields: title, subtitle, description, image, caption, family, categories, status, purpose, inputs, software, order).
  4. Run quarto render.

License

MIT. Datasets belong to their respective packages and original authors.

About

Gallery of plots for meta-analysis, network meta-analysis, and indirect treatment comparisons (MAIC, STC, ML-NMR, NMI, ML-UMR), with reproducible R code for every figure.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages