I am using carData::Rossi data to estimate a survival curve. This is the code I used to generate the plot:
library(carData); library(survival)
km1 <- survfit(Surv(week,arrest) ~ race,type = "kaplan-meier",data=Rossi)
library(ggplot2); library(ggfortify)
autoplot(km1) +
labs(x="Time", y="Proportion", strata= "Raza")
I got this result:
How can I change the strata label to Race?

Instead of
strata = "Raza", you using bothcolor = "Raza"andfill = "Raza"will works.I'm not sure that
colour = "Raza"works. It did't work for me.By using
survminer::ggsurvplot,