-
Notifications
You must be signed in to change notification settings - Fork 120
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
Difference between if statement and error message in ggsurv_m #222
Comments
Do you think this error message is needed anymore? Line 295 in 6f96dcf
I think Line 274 in 6f96dcf
and lty.est length check is covered here: Line 286 in 6f96dcf
If so, we might as well remove the stop check. |
I cannot figure out why I introduced the stop check in the first place. Although specifying both multiple surv.col and multiple lty.est gives a bit of a circus, technically there is nothing wrong with it. The checks you mention, Barret, do not check for the combination of the two parameters, so in that sense the check is not redundant. However I still opt for removing it, because it is for the user to decide if both should be specified. |
removed error check. submitting to cran |
When using confidence intervals in a plot with multiple strata in ggsurv(), the error message "Either surv.col or lty.est should be of length 1 in order to plot 95% CI with multiple strata" can be encountered. However, the if statement and the error message does not agree:
I think that the error message is correct, while the if statement is not. My guess is that the code should be changed to:
The text was updated successfully, but these errors were encountered: