-
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
ggflexsurvplot removing groups from KM plot #408
Comments
Seems related to this code in the function: |
fixes: now, the grouping variable can be either a factor or a character vector (in your example). Should work now, thanks! You can install the latest dev version as follow: devtools::install_github("kassambara/survminer", build_vignettes = FALSE, dependencies = FALSE) |
I'm still getting this problem. I think the problem is in the function |
The issue sting lingers. Just in case anyone is still stuck in this problem, just use a |
ggflexsurvplot() should show the KM curve with model fit curves for all strata. Instead the strata for the KM curve have been relabelled "All".
May be related to the length(summary(fit)) check that should only relabel strata to "All" if if the summary list length equals 1.
Here you can see my model fit curves and and the broken red "All" KM curve which should be broken out by strata.
The text was updated successfully, but these errors were encountered: