Skip to content

Commit

Permalink
deprecated aes_string() replaced by aes()
Browse files Browse the repository at this point in the history
  • Loading branch information
kassambara committed Oct 29, 2024
1 parent c7ff628 commit b7c4fae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ importFrom(grDevices,axisTicks)
importFrom(magrittr,"%>%")
importFrom(methods,is)
importFrom(purrr,map)
importFrom(rlang,"!!")
importFrom(rlang,sym)
importFrom(rlang,syms)
importFrom(stats,anova)
importFrom(stats,approx)
Expand Down
2 changes: 1 addition & 1 deletion R/ggsurvplot_df.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ ggsurvplot_df <- function(fit, fun = NULL,
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
df[, .strata.var] <- factor( df[, .strata.var], levels = .levels(.strata), labels = legend.labs)

p <- ggplot2::ggplot(df, ggplot2::aes_string("time", "surv")) +
p <- ggplot2::ggplot(df, ggplot2::aes(x = !!sym("time"), y = !!sym("surv"))) +
ggpubr::geom_exec(surv.geom, data = df, size = size, color = color, linetype = linetype, ...) +
ggplot2::scale_y_continuous(breaks = y.breaks, labels = scale_labels, limits = ylim, expand = .expand) +
ggplot2::coord_cartesian(xlim = xlim)+
Expand Down
1 change: 1 addition & 0 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#' @importFrom stats pchisq
#' @importFrom survMisc ten comp
#' @importFrom utils capture.output
#' @importFrom rlang !! sym


# Count the number of ggplots in a list
Expand Down
1 change: 0 additions & 1 deletion man/ggsurvplot_df.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b7c4fae

Please sign in to comment.