-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplifying ggsurvplot #154
Comments
Now ggsurv$plot # survival curves
ggsurv$table # risk table
ggsurv$cumevents # cumulative number of events
ggsurv$ncensor.plot # ncensor plot Adding 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.
The text was updated successfully, but these errors were encountered: