Open dmiftakhutdinov opened 6 years ago
Seems to be the same as #254
Things seems to be connected to .connect2origin: it doesn't fill variables columns when fit parameter is not supplied. The only thing here, I was studying ggsurvplot without facet.by as I needed this for particular task and wanted to use ggsurvplot()$plot + facet_wrap() instead. ggsurvplot()$plot$data contains wrong values for time = 0 because .connect2origin doesn't fill values when fit parameter is not supplied.
You are right, it was with the function .connect2origin() Here is a quick fix: https://github.com/BingxinS/survminer-fix
The link to the quick fix above doesn't seem to point at anything useful and I'm seeing both the problem described and possibly a similar problem in my own code.
I also encountered a similar problem as slyrus...
I also have the same problem.
Expected behavior
Two survival plots, one with step for X = 1, and one without step for X = 2
Actual behavior
First two commands: "Error in allf[[1]] : subscript out of bounds" occurs in strata function Third command: the second plot looks wrongly: only censoring symbol @ (20, 1.0) displayed.
It should be noted that the following works perfect:
Steps to reproduce the problem
session_info()