All functions

add_default_aes()

Add default aestethic settings to the variables and flows data frames. Helper function called by prepare_diagram

add_locations()

Add x,y location information Helper function called by prepare_diagram. Likely not useful for direct calling.

add_plus_signs()

Add explicit plus signs to flows. Used by prepare_diagram.

check_dataframes()

Helper function to perform basic checks of the variables and flows data frames. Returns errors if found.

check_model_list()

Check model_list input for prepare_diagram for correctness.

check_model_settings()

Check optional model_settings input for prepare_diagram for correctness.

convert_from_modelbuilder()

Convert modelbuilder list object to list for modeldiagram

fix_arrow_pos()

Adjust arrow positions to avoid overlaps. helper function for prepare_diagram that is only applied to arrows from nowhere or to nowhere (e.g., birth or death arrows).

flowdiagramr

flowdiagramr: A package to create flow diagrams

get_code()

Returns the ggplot2 code so that this can be in one place

get_vars_pars()

Extract the variables and parameters from a flow. used by prepare_diagram

make_diagram()

Make a ggplot2 model diagram.

prepare_diagram()

Create data frames for plotting from model elements.

set_curvature()

Sets the curvature values for curved arrows. used by prepare_diagram

set_feedback_curvature()

Sets the curvature values for feedback arrows

set_node_to_na()

Set to and from values to NA if value not present in nodes df

test_setting_lengths()

Test whether settings are the correct length.

update_diagram()

Updates the aesthetics settings in the variables and flows data frames

update_tofroms()

Updates the numeric to/from ids to the variable label

write_diagram()

Generate a reproducible R script to make the diagram.