Skip to contents

Plotting methods for HRQoL results

Plot method for example trajectories

Plot results from single trial

Usage

# S3 method for hrqolr_trajectories
plot(
  x,
  which = "both",
  arm_aes = NULL,
  patient_aes = list(alpha = 0.2),
  ribbon_aes = list(alpha = 0.2),
  ribbon_percentiles = c(0.25, 0.75),
  ...
)

# S3 method for hrqolr_trial
plot(x, analysis = "all", ecdf = TRUE, ...)

Arguments

x

object to plot, see Details.

which

character, one of "both" (arm and patient trajectories, the default), "arm" (only arm trajectories), "patient" (only patient trajectories) and "summarise" (arm trajectories with ribbons summarising the patient trajectories).

arm_aes, patient_aes, ribbon_aes

lists with additional settings for the arm, patients and ribbon layers.

ribbon_percentiles

scalar of two elements defining the lower and upper percentiles of band drawn to summarise patient trajectories

...

passed on to methods

analysis

character, "all" (include non-survivors and set their HRQoL to 0) or "survivors".

ecdf

logical, whether to plot the empiricial cumulative distribution (default) or not

Value

A ggplot2 object.

A ggplot.

Methods (by class)

  • plot(hrqolr_trajectories): Example trajectories

  • plot(hrqolr_trial): Single trial