plotStudyCohorts: plotStudyCohorts

Description Usage Arguments Value Examples

Description

Plots the cohort durations/cycles in a FAIRsimulator study object.

Usage

1
2
3
4
plotStudyCohorts(StudyObj, cohortlength = 6 * 30, plotAnaTimes = FALSE,
  plotFutilityTimes = FALSE, plotFinalAnalysis = FALSE,
  wrapVariable = NULL, shiftWithinLevel = NULL,
  includeCohortStopTime = TRUE)

Arguments

StudyObj

A FAIRsimulator study object.

cohortlength

The length (in days) of cohorts that are evolving

plotAnaTimes

Logical. Should the analysis times be indicated in the plot.

wrapVariable

The name (as a string) of the variable to create facets with, using facet_wrap.

shiftByLevel

Shifting each cohort upwards the y-axis by level and this amount, default= NULL (no shift)

Value

A ggplot object

Examples

1
2
3
4
## Not run: 
plotStudyCohorts(StudyObj)

## End(Not run)

eniclas/FAIRsimulator documentation built on May 16, 2019, 5:12 a.m.