y axis percent and risk table cut off
I have the following data and adjusted the plot to fit my needs, except for the y axis and the risk table.
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.