Skip to content

Commit 151dd42

Browse files
committed
Fix size -> linewidth deprecation in plot.surv_cutpoint()
Replace deprecated `size` parameter with `linewidth` in geom_segment() call within plot.surv_cutpoint(), consistent with ggplot2 >= 3.4.0 API changes.
1 parent 28b5b9c commit 151dd42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/surv_cutpoint.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ plot.surv_cutpoint <- function(x, variables = NULL, ggtheme = theme_classic(), b
217217
max_stat_p <- ggplot(data = p_data, mapping=ggplot2::aes(x = !!sym("cuts"), y = !!sym("stats")))+
218218
geom_point(aes(color = !!sym("grps")), shape = 19, size = 0.5)+
219219
geom_segment(aes(x = x1, y = y1, xend = x2, yend = y2),
220-
data = vline_df, linetype = "dashed", size = 0.5)+
220+
data = vline_df, linetype = "dashed", linewidth = 0.5)+
221221
ggplot2::annotate("text", x = max_stat$estimate, y = 0.5,
222222
label = cutpoint_label, size = 4)+
223223
labs(y = "Standardized Log-Rank Statistic",

0 commit comments

Comments
 (0)