Learn R Programming

SpaDES.core (version 2.0.5)

objectDiagram: Simulation object dependency diagram

Description

Create a sequence diagram illustrating the data object dependencies of a simulation. Offers a more detailed view of specific objects than does plotting the depsEdgeList directly with moduleDiagram().

Usage

objectDiagram(sim, ...)

# S4 method for simList objectDiagram(sim, ...)

Value

Plots a sequence diagram, invisibly returning a DiagrammeR::mermaid object.

Arguments

sim

A simList object (typically corresponding to a completed simulation).

...

Additional arguments passed to DiagrammeR::mermaid. Useful for specifying height and width.

Author

Alex Chubaty

See Also

DiagrammeR::mermaid.

Examples

Run this code
# \donttest{
if (requireNamespace("DiagrammeR", quietly = TRUE)) {
  sim <- simInit()
  objectDiagram(sim)
  # if there are lots of objects, may need to increase width and/or height
  objectDiagram(sim, height = 3000, width = 3000)
}
# }

Run the code above in your browser using DataLab