pharmaverse / ggsurvfit

http://www.danieldsjoberg.com/ggsurvfit/
Other
67 stars 19 forks source link

Feature request: change color and line type when plotting multiple outcomes #141

Closed jiyuxiongdi closed 1 year ago

jiyuxiongdi commented 1 year ago

Is your feature request related to a problem? Please describe. I would like to change the color and line type of the cumulative indicidence and confidence interval for the following plot

cuminc(Surv(ttdeath, death_cr) ~ 1, trial) %>%
  ggcuminc(outcome = c("death from cancer", "death other causes")) +
  add_confidence_interval() +
  add_risktable()

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

ddsjoberg commented 1 year ago

Hi @jiyuxiongdi , thanks for the post.

Can you use the cuminc() function with its tidier (https://mskcc-epi-bio.github.io/tidycmprsk/reference/broom_methods_cuminc.html) to create a figure of what you would like to see?

ddsjoberg commented 1 year ago

feel free to re-open when you've provided more details, thank you