-
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
custom p-value on the ggsurvplot #189
Comments
Good suggestion!! |
I can activate this option in a minute... |
Should work now: require("survival")
require("survminer")
fit<- survfit(Surv(time, status) ~ sex, data = lung)
ggsurvplot(fit, data = lung, pval = 0.1) |
OMG : P I've been working for last 30 minutes on that : D ok nevermind.
|
Oh sorry... A good idea for pval = character... Wainting your pull request ... Thanks:-)! |
PR is here - #193 |
Thanks @MarcinKosinski! I tested and it works like charm:-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One can specify
pval = TRUE/FALSE
in theggsurvplot
as a logical value.Let also make this possible to be specified as a numeric value, that will be passed to the plot, so that user ca n pass any p-value to the final plot of the test that he needs (e.g. log-rank test as in #188 )
The text was updated successfully, but these errors were encountered: