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().

objectDiagram(sim, ...)

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

Arguments

sim

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

...

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

Value

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

Author

Alex Chubaty

Examples

# \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)
}
#> Setting:
#>   options(
#>     reproducible.cachePath = '/tmp/RtmpzNRBK9/myProject/cache'
#>     spades.inputPath = '/tmp/RtmpzNRBK9/myProject/inputs'
#>     spades.outputPath = '/tmp/RtmpzNRBK9/myProject/outputs'
#>     spades.modulePath = '/tmp/RtmpzNRBK9/myProject/modules'
#>     spades.scratchPath = '/tmp/RtmpzNRBK9/SpaDES/scratch'
#>   )
#> Nov23 21:41:08 simInit Using setDTthreads(1). To change: 'options(spades.DTthreads = X)'.
#> Elpsed time for simInit: 0.02566886 secs
# }