km_plot: plot the KM curve

Description Usage Arguments Value

View source: R/functions.R

Description

plot the KM curve

Usage

1
km_plot(model, covariate, dataset = veteran, plot_fancy = T)

Arguments

model

a Surv(time, status) object

covariate

it can be 1 if all covariates are included, or it can be a single covariate

dataset

it is the dataset we use

plot_fancy

if it is TRUE, then it uses ggplot2, otherwise it use the base graphics

Value

a figure


LittleBeannie/demo documentation built on Aug. 12, 2020, 8:17 p.m.