I tried changing the font family for ggsurvplot using the following code:
library(survival)
library(survminer)
fit<- survfit(Surv(time, status) ~ sex, data = lung)
ggsurvplot(fit, risk.table = TRUE, risk.table.pos = "in", pval = TRUE, ggtheme = theme_classic2(base_family = "Courier New"))
I got the following plot :

As you can see in the plot, font family gets applied to all the plot parameters except the risk table and p-value. Is there a way to resolve the issue?
Thank you!
I tried changing the font family for ggsurvplot using the following code:
I got the following plot :

As you can see in the plot, font family gets applied to all the plot parameters except the risk table and p-value. Is there a way to resolve the issue?
Thank you!