Skip to content

Commit

Permalink
protect if-clause
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Jan 23, 2025
1 parent 97edd62 commit 7868d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/geom-ribbon.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ GeomRibbon <- ggproto("GeomRibbon", Geom,
strsplit(self$required_aes, "|", fixed = TRUE),
`[[`, i = 1, character(1)
)
if (params$flipped_aes || any(data$flipped_aes) %||% FALSE) {
if (isTRUE(params$flipped_aes || any(data$flipped_aes) %||% FALSE)) {
vars <- switch_orientation(vars)
}
vars <- c(vars, self$non_missing_aes)
Expand Down

0 comments on commit 7868d9f

Please sign in to comment.