plotHAZTreatmentEff: plotHAZTreatmentEff

Description Usage Arguments Details Value Examples

Description

Plots the simulated data in a FAIRsimulator study object with treatment effects.

Usage

1
2
3
4
5
plotHAZTreatmentEff(StudyObj,
  treatmentNames = unique(unlist(StudyObj$StudyDesignSettings$Treatments)),
  treatmentColors = ggplotColours(length(treatmentNames)),
  SoCtrt = grep(pattern = "SoC",
  unique(unlist(StudyObj$StudyDesignSettings$Treatments))), SoCcol = "black")

Arguments

StudyObj

A FAIRsimulator study object.

treatmentNames

A vector of treatment names. Default is the treatment names assigned at study initialisation.

treatmentColors

A vector of colors for the treatment effects. Has to be the same length as the treatmentNames.

SoCtrt

A vector of indicies for the treatmentNames indicating Standard of Care treatment arms. The default is set by grepping treatmentNames for the string 'SoC'.

SoCcol

A vector of color names to assign to the SoC treatment arms.

Details

Will produce a graph of individual change from cohort baseline HAZ. Treatment effects are visualised by linear regression lines for each treatment group.

Value

A ggplot object

Examples

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

## End(Not run)

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