knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

The goal of this package is to reproduce the paper "Generalism drives abundance: a computational causal discovery approach" by Chuliang Song, Benno I. Simmons, Marie-Josée Fortin, and Andrew Gonzalez.

Installation

You can install the package from GitHub with:

# install.packages("devtools")
devtools::install_github("clsong/ReproduceChickenEgg")

Reproduce

The main figures can be reproduced simply by running plot_figure_Number. For example, figure S9 can be reproduced as

library(ReproduceChickenEgg)
plot_figure_S9()


clsong/ReproduceChickenEgg documentation built on Oct. 20, 2022, 8:59 p.m.