| aib_figures | R Documentation |
Copies the paper figures script to your working directory and optionally runs it. The script produces five figures (bias trajectory, disparity heatmap, transition probabilities, amplification index and gap decomposition) from a toy simulation (N=20, T=3).
aib_figures(run = TRUE, dest = file.path(tempdir(), "paper_figures.R"))
run |
Logical. If TRUE (default), runs the script immediately. If FALSE, just copies the file for you to inspect and edit first. |
dest |
Character. Destination filename. Default |
The path to the copied script, invisibly.
# Copy and run immediately
aib_figures()
# Just copy to inspect first
aib_figures(run = FALSE, dest = file.path(tempdir(), "paper_figures.R"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.