Hello to everybody and thank you for your help. I'm managing to build a forest plot of a Cox model with the Survminer package, however, I've got stuck in trying to change the labels of the variables displayed. Is there a way to change the labels displayed without changing variable names? How could I update my string in order to change the names?
ggforest<-ggforest(coxph, data=data)
If I try to use the legend.labs function I obtain this error
ggforest(coxph, data=data, legend.title = c("Prova"),legend.labs=c("Carried AED","Daytime", "Distance 1","Distance 2", "Distance 3"))
Error in ggforest(coxph, data = data, legend.title = c("Prova"), legend.labs = c("Carried AED", :
unused arguments (legend.title = c("Prova"), legend.labs = c("Carried AED", "Daytime", "Distance 1", "Distance 2", "Distance 3"))
Can you help me with changing these labels?
Thank you again