Skip to content

Commit

Permalink
Clarify dependency on ggplot2 3.5 and replace a size by linewidth
Browse files Browse the repository at this point in the history
… to avoid deprecation warning
  • Loading branch information
olivroy committed Jul 22, 2024
1 parent 3ef2acc commit 01124c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion R/johnson_neyman.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01124c2

Please sign in to comment.