Skip to contents

Plot of tumor growth over time using the median

Usage

plot_median(
  tumr_obj = NULL,
  data = NULL,
  group = NULL,
  time = NULL,
  measure = NULL,
  id = NULL,
  par = TRUE
)

Arguments

tumr_obj

takes tumr_obj created by tumr()

data

tumor growth data

group

Column specifying the treatment group for each measurement

time

Column of repeated time measurements

measure

Column of repeated measurements of tumor

id

Column of subject ID's

par

Logical. If TRUE, uses the parametric method. If FALSE, uses the nonparametric method based on Kaplan-Meier estimation. Default is TRUE.

Value

A ggplot object

Examples

data(melanoma2)
mel2 <- tumr(melanoma2, ID, Day, Volume, Treatment)
plot_median(mel2)

plot_median(mel2, par = FALSE)