ci_plot: Custom Cumulative incidence plot with risk table

Description Usage Arguments Author(s) Examples

View source: R/ci_plot.R

Description

Hodgepodge of surviminer, survival, and custom code to get a cumulative incidence curve with risk table the way I like it

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
ci_plot(
  dat,
  time,
  status,
  variable,
  title,
  xlab,
  note,
  pallette,
  legend_labs,
  xlim,
  ylim,
  break.time.by,
  breaks = NULL
)

Arguments

dat

data frame

time

variable, in quotes, with the survival time information

status

variable, in quotes, with crr survival status

variable

variable, in quotes, of interest to compare

title

title of graph

xlab

x-axis label

legend_labs

vector

xlim

vector

ylim

vector

break.time.by

vector

palette

color palette

Author(s)

Margaret L. Hannum

Examples

1
# example add

margarethannum/funnum documentation built on June 3, 2020, 8:32 p.m.