Relative Content

Tag Archive for rggplot2ggsurvfit

How to color the text within add_risktable()?

I’m trying to change the text color inside the add_risktable() function in ggsurvfit so that each strata in the risk table matches the same strata’s color in the ggcuminc plot. The function in ggsurvplot that does this is risk.table.col = "strata" but I haven’t figured out how to get that result to work in ggcuminc/ggsurvfit. This is my current code setup in my R shiny app.