From 01124c2cdbfaf3180edeec7a31aba79354480aeb Mon Sep 17 00:00:00 2001 From: olivroy Date: Mon, 22 Jul 2024 12:58:55 -0400 Subject: [PATCH] Clarify dependency on ggplot2 3.5 and replace a `size` by `linewidth` to avoid deprecation warning --- DESCRIPTION | 2 +- R/johnson_neyman.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 974b7a2..6bb934f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -17,7 +17,7 @@ BugReports: https://github.com/jacob-long/interactions/issues License: MIT + file LICENSE Encoding: UTF-8 Imports: - ggplot2, + ggplot2 (>= 3.5.0), crayon, cli, generics, diff --git a/R/johnson_neyman.R b/R/johnson_neyman.R index ee02ad6..5de285b 100644 --- a/R/johnson_neyman.R +++ b/R/johnson_neyman.R @@ -538,7 +538,7 @@ johnson_neyman <- function(model, pred, modx, vmat = NULL, alpha = 0.05, ggplot2::geom_segment(ggplot2::aes(x = modrangeo[1], xend = modrangeo[2], y = 0, yend = 0, linetype = "Range of\nobserved\ndata"), - lineend = "square", size = 1.25) + lineend = "square", linewidth = 1.25) } # Adding this scale allows me to have consistent ordering