View source: R/visualization.R
get_mut_survivalresult | R Documentation |
The function 'get_mut_survivalresult' uses to draw the Kaplan-Meier survival curve based on the mutated status of candidate module.
get_mut_survivalresult(module, freq_matrix, sur)
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. |
No return value
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.