The model needs to adhere to the structure specified by the modelbuilder package models built using the modelbuilder package automatically have the right structure a user can also build a model list structure themselves following the specifications if the user provides an Rds file name, this file needs to contain an object called 'mbmodel' and contain a valid modelbuilder model structure

generate_flowchart_ggplot(mbmodel)

Arguments

mbmodel

model structure, either as list object or Rds file name

Value

The function returns the diagram stored in a variable