I've obtained a survival plot from the following code: s = Surv(outcome.[,1], outcome.[,2]) survplot= (survfit(s ~ person.list[,1])) plot(survplot, mark.time = FALSE)
person.list is just a list of 15 people. When I plot this, the lines on my plot all end at different time points. Is there a way to extend all the lines to make them end at a certain time point? (i.e outcome.[,1] is a time to event variable and I would like the survival lines on the plot to extend out to say 5(years) ) http://r.789695.n4.nabble.com/file/n4457737/r_graph.jpeg Thanks, M -- View this message in context: http://r.789695.n4.nabble.com/Extended-Survival-Plot-Lines-tp4457737p4457737.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.