Generates a network graph of the flows from population groups, to conditions, to treatments, as generated by the model.

create_graph(
  model_output,
  groups = unique(model_output$group),
  conditions = unique(model_output$condition),
  treatments = unique(model_output$treatment)
)

Arguments

model_output

output from run_model() and get_model_output()

groups

a vector of population groups to include in the graph, defaults to all groups

conditions

a vector of conditions to include in the graph, defaults to all conditions

treatments

a vector of treatments to include in the graph, defaults to all treatments

Value

a plotly chart