Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSimplifying ggsurvplot #154
Comments
|
Now ggsurv$plot # survival curves
ggsurv$table # risk table
ggsurv$cumevents # cumulative number of events
ggsurv$ncensor.plot # ncensor plotAdding extra arguments in For any hyper-customization of ggsurvplot components, users should use either the function the function |
|
Backward compatibility will be preserved with upcoming changes |
|
Creating the |
…able .get_default_breaks() function #154
|
Now, the output of library(survival)
fit <- survfit( Surv(time, status) ~ sex,
data = lung )
library(survminer)
ggsurvplot(fit, data = lung,
risk.table = TRUE,
risk.table.title = "No at Risk",
cumevents = TRUE,
cumevents.title = "Cumulative No of Events",
ncensor.plot = TRUE,
ncensor.plot.title = "No of Censored Subjects",
palette = "jco",
risk.table.height = 0.2,
cumevents.height = 0.2,
ncensor.plot.height = 0.2
)The ncensor plot, based on raw timing, is not easy to read. This can be even more difficult in the situation, where the number of strata >= 3. To resolve this problem, @pbiecek implement a very convenient solution in One could also display the cumulative number of censored subjects as a table. |
|
Now, it's possible to display the cumulative number of censoring. Examples are provided at #155 |
|
Symplifying test name in .get_pvalue() method <- "Log-rank (survdiff)"
test_name <- c("Log-rank (comp)", "Gehan-Breslow (generalized Wilcoxon)",
"Tarone-Ware", "Peto-Peto's modified survival estimate",
"modified Peto-Peto (by Andersen)", "Fleming-Harrington (p=1, q=1)") |
|
Suggestion: method <- "Log-rank"
|


No description provided.