Skip to contents

Define `plotDemography` task and its settings

Usage

loadPlotDemographyTask(workflow, active = FALSE, settings = NULL)

Arguments

workflow

`PopulationWorkflow` object or derived class

active

logical defining if `Task` will be run by workflow. Default value is `FALSE`

settings

specific settings for `plotDemography` task

Value

A `PlotTask` object

Examples

if (FALSE) { # \dontrun{

# A workflow object needs to be created first
myWorkflow <- PopulationWorkflow$new(
  workflowType,
  workflowFolder,
  simulationSets
)

# (Re)load a default plotDemography task for workflow
myWorkflow$plotDemography <- loadPlotDemographyTask(
  workflow = myWorkflow,
  active = TRUE
)

# Load a user-defined simulation task for workflow
myWorkflow$userDefinedTasks[["plotDemography"]] <- loadPlotDemographyTask(
  workflow = myWorkflow,
  active = TRUE
)
} # }