sim2gantt: sim2gantt

.sim2ganttR Documentation

sim2gantt

Description

Internal function to convert the completed events list of a simList object to a list of data.frames suitable to pass to a call to DiagrammeR::mermaid to make a Gantt chart representing the events in a completed simulation.

Usage

.sim2gantt(sim, n, startDate, width)

## S4 method for signature 'simList,numeric,character,numeric'
.sim2gantt(sim, n, startDate, width)

Arguments

sim

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

n

The number of most recently completed events to plot.

startDate

A character representation of date in YYYY-MM-DD format.

width

Numeric. Passed to determine scale of vertical bars.

Value

A list of data.frames

Author(s)

Alex Chubaty


PredictiveEcology/SpaDES.core documentation built on April 17, 2024, 8:27 a.m.