survival: Add median survial line in sm
This commit is contained in:
parent
fb069c4d31
commit
798ebcea99
@ -78,6 +78,7 @@ sma_plot_surv_asct_dx <- function() {
|
||||
sma_plot_surv_sm <- function() {
|
||||
ggsurvplot(survfit(Surv(event_time_sm, event_status) ~ 1, secmal),
|
||||
data = secmal, xscale = "d_y",
|
||||
surv.median.line = "hv",
|
||||
break.time.by = 365.25,
|
||||
legend = "none",
|
||||
xlab = "Years",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user