KMView: Survival analysis and plot the kaplan-meier curves

Description Usage Arguments Value Author(s)

View source: R/KMView.R

Description

Survival analysis and plot the kaplan-meier curves

Usage

1
2
3
KMView(survdata, bio, os = "os", event = "event", cut = c(0, 0.5, 1),
  optimalCut = TRUE, pval.method = c("cox", "logrank"),
  pval.pos = c(0.9, 0.95), labels = 1:(length(cut) - 1), ...)

Arguments

survdata

A data frame including the clinical information.

bio

A character or an integer, specifying which variable/column in the survdata should be used to predict the risk of patients.

os

A character or an integer, specifying the variable/column of overall survival.

event

A character or an integer, specifying the variable/column of outcome.

cut

A numeric vector for separating the patients into different groups, only available when 'bio' is a continuous variable.

optimalCut

Boolean, indicating whether determin the ootimal cutpoint.

pval.method

Character, indicating the method for the pvalue calculation, only logrank and cox are available now.

pval.pos

Character, indicating the method for the pvalue calculation.

labels

A character vector, specifying the labels for each patient group.

...

Other available parameters in ggsurvplot.

event

A character or an integer, specifying the variable/column of outcome.

Value

A ggplot instance that allows further custimization.

Author(s)

Wubing Zhang


WubingZhang/ggView documentation built on Sept. 4, 2020, 4:28 p.m.