Skip to content

Commit 6e202a2

Browse files
committed
CoordFixed is missing in new ggplot2 (4.0.0)
1 parent fb5438f commit 6e202a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/utilities.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ is.coord_flip <- function(p) {
2020
}
2121

2222
is.coord_fixed <- function(p){
23-
inherits(p, "gg") && inherits(p$coordinates, "CoordFixed")
23+
inherits(p, "gg") && !is.null(p$coordinates$ratio)
2424
}
2525

2626
#' @importFrom ggplot2 coord_fixed

0 commit comments

Comments
 (0)