knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(DiagrammeR)
This is an individual based model for P. Falciparum and malaria interventions.
The human variables are documented in "R/variables.R".
The human biological processes are spread out between the following files:
DiagrammeR::grViz("digraph { graph [layout = dot, rankdir = LR] node [shape = rectangle] S D A U Tr node [shape = circle] i [label = ''] # edge definitions with the node IDs S -> i [color='orange'] i -> D [color='orange'] i -> A [color='orange'] i -> Tr [color='orange'] D -> A -> U -> S [color='green'] Tr -> s [color='green'] A -> i [color='orange'] U -> i [color='orange'] U -> S [color='red'] A -> S [color='red'] D -> S [color='red'] }")
The mosquito biological processes are spread out between the following files:
DiagrammeR::grViz("digraph { graph [layout = dot, rankdir = LR] subgraph clusterode { style=filled; color=lightblue; node [shape = rectangle] E L P label='ODE' } node [shape = rectangle] Sm Pm Im NonExistent # edge definitions with the node IDs E -> L -> P [color='green', label='1'] P -> Sm [color='green', label='2'] Sm -> Pm -> Im [color='orange', label='3'] Sm -> NonExistent [color='red', label='4'] Pm -> NonExistent [color='red', label='4'] Im -> NonExistent [color='red', label='4'] }")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.