PlotSurvival {IDMIR} | R Documentation |
PlotSurvival
Description
Function "PlotSurvival" is used to draw a Kaplan-Meier curve.
Usage
PlotSurvival(MiRNA_CRData,colors=c("#ef6d6d","#5470c6"))
Arguments
MiRNA_CRData |
A list includes a data frame with seven parts those are "sample", "status", "time", "target genes expression", "risk score", "group", and a data frame with five columns those are "Gene", "HR", "HR.95L", "HR.95H", "beta", and "P-value". |
colors |
Vector of colors used to define groups. |
Value
A survival curve of a data set.
Examples
# Obtain the example data
GEP<-GetData_Mirna("GEP")
survival<-GetData_Mirna("survival")
MiRNAs<-c("hsa-miR-21-5p","hsa-miR-26a-5p","hsa-miR-369-5p","hsa-miR-1238-3p","hsa-miR-10b-5p")
# Run the function
SingleMiRNA_CRData<-SingleMiRNA_CRModel(GEP,
"hsa-miR-21-5p",survival,cutoff.point=NULL)
PlotSurvival(SingleMiRNA_CRData)
MutiMiRNA_CRData<-MutiMiRNA_CRModel(GEP,
MiRNAs,survival,cutoff.point=NULL)
PlotSurvival(MutiMiRNA_CRData)
[Package IDMIR version 0.1.0 Index]