Learn R Programming

ProgModule (version 0.1.0)

get_mut_survivalresult: Plot Kaplan-Meier survival curve.

Description

The function `get_mut_survivalresult` uses to draw the Kaplan-Meier survival curve based on the mutated status of candidate module.

Usage

get_mut_survivalresult(module, freq_matrix, sur)

Value

No return value

Arguments

module

The gene module,generated by `get_final_candidate_module`.

freq_matrix

The mutations matrix,generated by `get_mut_status`.

sur

A nx2 data frame of samples' survival data,the first line is samples' survival event and the second line is samples' overall survival.

Examples

Run this code
#load the data.
data(mut_status)
sur<-system.file("extdata","sur.csv",package="ProgModule")
sur<-read.delim(sur,sep=",",header=TRUE,row.names=1)
data(final_candidate_module)
#perform the function `get_mut_survivalresult`.
get_mut_survivalresult(module=final_candidate_module,freq_matrix=mut_status,sur)

Run the code above in your browser using DataLab