You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I generate a risk table that is alphabetically ordered and shows the events as [A, B, C, D, E].
I would like it to be in the risk table in the order I specify (e.g. [B, D, E, A, C] rather than alphabetical as I have learned to change the legend order and it helps to match the legend.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm stumped. I've been trying to find a way to manually determine the order of the risk table with multiple survival endpoints.
Currently I have data with multiple event_types (A, B, C, D, E) and list multiple rows for each patient for those event types.
Currently, when using the approach:
survfit2(surv(event_time, event_status) ~ event_type, data = df) &>&
ggsurvfit() +
add_risktable()
I generate a risk table that is alphabetically ordered and shows the events as [A, B, C, D, E].
I would like it to be in the risk table in the order I specify (e.g. [B, D, E, A, C] rather than alphabetical as I have learned to change the legend order and it helps to match the legend.
Is there a way to do this?
All reactions