surv.plot: Survival plots according cell cutoffs

View source: R/surv.plot.R

surv.plotR Documentation

Survival plots according cell cutoffs

Description

Once immune cell cutoffs are calculated, this function draw the subsequent Kaplan-Meier curves for specified populations.

Usage

surv.plot(
  pop.cutoff.obj,
  time.var,
  event.var,
  palette = "jco",
  variables,
  curve.type = "survival"
)

Arguments

pop.cutoff.obj

An object generated through FlowCT::pop.cutoff().

time.var

Survival time variable.

event.var

Variable with event censoring.

palette

Colors vector. Default = "jco".

variables

Vector with variables for drawing the survival curve. If nothing is detailed (NULL, default), all cutoffs will be plotted.

curve.type

Plotting curve methodology, i.e. "survival" (default) or "cumulative" (for progressions).

Examples

## Not run: 
surv.plot(pop_cuts, time.var = "PFS", event.var = "PFS_c", curve.type = "survival")

## End(Not run)

jgarces02/FlowCT documentation built on March 28, 2023, 12:42 p.m.