Description Usage Arguments Value Examples
Produces Kaplan-Meier survival curves for each subtype.
1 |
pred |
A vector of predicted consensus molecular subtypes. |
time |
A vector of the follow-up time. |
event |
A vector representing survival status (0 = alive, 1 = dead). |
A ggplot
object.
1 2 3 4 5 6 7 8 9 10 | # Load clinical information of TNBC samples
data(GSE25055)
DFS.status <- colData(GSE25055)$DFS.status
DFS.month <- colData(GSE25055)$DFS.month
# Predict consensus molecular subtypes of TNBC samples
prediction <- predictCMS(expr = GSE25055)
# Plot Kaplan-Meier curves for each subtype
plotKM(pred = prediction, time = DFS.month, event = DFS.status)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.