Skip to content

Commit 9c4d7dd

Browse files
Merge pull request #52 from xiangpin/master
CoordFixed is missing in new ggplot2 (4.0.0)
2 parents fb5438f + 6e202a2 commit 9c4d7dd

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)