I am plotting survival curves for different strata with the following code
library(survival)
library(rms)
survplot(npsurv(formula =Surv(time, event)~group, data=df ), legend.pos = 'bottom')
On resulting graph line labels are not positioned well, as they overlap and run off the graph. How can I control positioning of labels? I am happy with just creating simple legend instead of putting labels next to line.