Skip to content
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

Number at risk and number censored in the same table using ggsurvplot_combine #641

Open
msingull opened this issue Jan 24, 2024 · 0 comments

Comments

@msingull
Copy link

Expected behavior

I want to have the number at risk and number censored in the same risk table when using ggsurvplot_combine as one can get fro ggsurvplot. When looking RDocumentation it is written that it should work but it does not for me.

Actual behavior

My code

fits = list(All_cause = fit0, Cancer = fit1, Cardio = fit2)

ggsurvplot_combine(fits, risk.table = "nrisk_cumcensor", risk.table.y.text = FALSE, ggtheme = theme_minimal(),
censor=FALSE, legend.labs = c("All-cause", "Cancer", "Cardio"), break.time.by = 20)

Steps to reproduce the problem

When running the code it will just produce the risk table with number at risk and not number of censored in parentheses as done when using ggsurvplot for one fit.

session_info()

# please paste here the result of
![Rplot](https://github.com/kassambara/survminer/assets/120676856/b581339c-d5ce-4064-9622-eda9737379e3)


devtools::session_info()

What to do? Thanks!
//Martin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant