I am facing a problem with the following code.
plot(KM2, xlab= "time (years)", ylab= "OS", conf.int=F, xlim=c(0,40))
lines(time, S.fit0, type =l, lty = 1, col = 2)
whenever I try to run it, the following error appears:
Error in plot.xy(xy.coords(x, y), type = type, ...) :
object 'l' not found
Please help me.. thank you