plot_followup: Plot a patient timeline containing

View source: R/plot_followup.R

plot_followupR Documentation

Plot a patient timeline containing

Description

Plot a patient timeline containing

Usage

plot_followup(
  object = NULL,
  add_median = TRUE,
  point_size = 1,
  line_size = 0.5,
  theme = ggplot2::theme_minimal()
)

Arguments

object

iwillsurvive. An iwillsurvive object

add_median

logical. If TRUE, add a line showing median.

point_size

numeric. Width of points

line_size

numeric. Width of lines

theme

A ggplot2 theme

Value

ggplot2

Examples


cohort_iws <- iwillsurvive(cohort_survival,
  followup_time = "followup_days",
  index_title = "LOT1 Start Date",
  event_title = "Death",
  terms = "condition"
)

plot_followup(cohort_iws)


ndphillips/iwillsurvive documentation built on June 4, 2024, 3 p.m.