-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error if argument 'data' is not provided. #235
Comments
fit <- survfit(Surv(futime, fustat) ~ 1, data = ovarian)
ggsurvplot(fit) If you decide to use fit <- survfit(Surv(ovarian$futime, ovarian$fustat) ~ 1) then, you should specify the argument ggsurvplot(fit, data = ovarian) |
Oh, I see. Thank you. Maybe a cleaner error message would be helpful:
|
Ok, we'll clarify this. Thanks |
fixed now, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
The function .get_data would extract data from the model fit if the argument 'data' is not provided.
Actual behavior
The function .get_data returns NULL.
Steps to reproduce the problem
library(survminer)
library(survival)
fit <- survfit(Surv(ovarian$futime, ovarian$fustat) ~ 1)
ggsurvplot(fit)
fit <- survfit(Surv(ovarian$futime, ovarian$fustat) ~ 1, data = ovarian)
ggsurvplot(fit)
session_info()
The text was updated successfully, but these errors were encountered: