Hi,
I am getting an error with ggsurvplot
this is my code:
KM <- survfit(Surv(data$t2dhfh, data$dhfh) ~ data$Diabetes.x)
summary(KM)
ggsurvplot(KM, data = data, risk.table = F, conf.int = F, pval = T, pval.method = F, fun = "event",
title = "", xlab="days", legend=c(0.85, 0.3), legend.title="",
legend.lab=c("no diabetes", "diabetes"),
palette = c("brown", "blue"), pval.coord=c(5, 0.6))
I am getting this error below whenever I run ggsurvplot:
Error in dplyr::select()
:
! ...
must be empty.
x Problematic argument:
- call = call
This is the same code I used before and never had issues with it until now
I tried restarting r, and I tried to search it online but I could not solve this issue
I appreciate any help i can get
sorry for any inconvenience, thanks
Backtrace:
- survminer::ggsurvplot(...)
- dplyr:::select.data.frame(., variable, dplyr::everything())
- tidyselect::eval_select(expr(c(...)), .data)
- tidyselect:::eval_select_impl(...)
- tidyselect:::vars_select_eval(...)
- tidyselect:::walk_data_tree(expr, data_mask, context_mask)
- tidyselect:::eval_c(expr, data_mask, context_mask)
- tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
- tidyselect:::walk_data_tree(init, data_mask, context_mask)
- tidyselect:::as_indices_sel_impl(...)
- tidyselect:::as_indices_impl(...)
- vctrs::vec_as_subscript(x, logical = "error", call = call, arg = arg)
Runrlang::last_trace()
to see the full context.
rlang::last_trace()
<error/rlib_error_dots_nonempty>
Error indplyr::select()
:
!...
must be empty.
x Problematic argument:
- call = call
Backtrace:
x
- +-survminer::ggsurvplot(...)
- | +-base::do.call(ggsurvplot_core, opts)
- | -survminer (local)
<fn>
(...) - | -survminer::surv_pvalue(...)
- | -... %>% dplyr::select(variable, dplyr::everything())
- +-dplyr::select(., variable, dplyr::everything())
- -dplyr:::select.data.frame(., variable, dplyr::everything())
- +-dplyr:::tidyselect_fix_call(...)
- | -base::withCallingHandlers(...)
- -tidyselect::eval_select(expr(c(...)), .data)
-
\-tidyselect:::eval_select_impl(...)
-
+-tidyselect:::with_subscript_errors(...)
-
| \-rlang::try_fetch(...)
-
| \-base::withCallingHandlers(...)
-
\-tidyselect:::vars_select_eval(...)
-
\-tidyselect:::walk_data_tree(expr, data_mask, context_mask)
-
\-tidyselect:::eval_c(expr, data_mask, context_mask)
-
\-tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
-
\-tidyselect:::walk_data_tree(init, data_mask, context_mask)
-
\-tidyselect:::as_indices_sel_impl(...)
-
\-tidyselect:::as_indices_impl(...)
-
\-vctrs::vec_as_subscript(x, logical = "error", call = call, arg = arg)
-
\-ellipsis::check_dots_empty()
-
\-rlang:::action_dots(...)
-
+-base (local) try_dots(...)
-
\-rlang (local) action(...)