You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The whole Kaplan-Meier plot is visible, when ggsurvplot is used.
Actual behavior
The Kaplan-Meier plot is sometimes truncated on the right side. The example is the Kaplan-Meier plot for data from colon library. When we use default values of arguments in ggsurvplot, the last days are truncated. It looks ok, when the xlim value is manually set.
Steps to reproduce the problem
library(survival)
library(survminer)
data(colon)
#Kaplan-Meier with default parameter values
fit <- survfit(Surv(time,status) ~ 1, data=colon)
ggsurvplot(fit, data = colon, ggtheme = theme_bw())
#When we extend the xlim, it looks ok:
ggsurvplot(fit, data = colon, ggtheme = theme_bw(), xlim = range(colon$time))
Please note that the last days in both images looks different (last days are missing on the first plot)
Expected behavior
The whole Kaplan-Meier plot is visible, when ggsurvplot is used.
Actual behavior
The Kaplan-Meier plot is sometimes truncated on the right side. The example is the Kaplan-Meier plot for data from colon library. When we use default values of arguments in ggsurvplot, the last days are truncated. It looks ok, when the xlim value is manually set.
Steps to reproduce the problem
library(survival)
library(survminer)
data(colon)
#Kaplan-Meier with default parameter values
fit <- survfit(Surv(time,status) ~ 1, data=colon)
ggsurvplot(fit, data = colon, ggtheme = theme_bw())
#When we extend the xlim, it looks ok:
ggsurvplot(fit, data = colon, ggtheme = theme_bw(), xlim = range(colon$time))
Please note that the last days in both images looks different (last days are missing on the first plot)
session_info()
The text was updated successfully, but these errors were encountered: