Skip to content

Commit dc6598d

Browse files
committed
exclude non-linear Cartesian children
1 parent 183e7ad commit dc6598d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/geom-raster.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ GeomRaster <- ggproto("GeomRaster", Geom,
9090

9191
draw_panel = function(self, data, panel_params, coord, interpolate = FALSE,
9292
hjust = 0.5, vjust = 0.5) {
93-
if (!inherits(coord, "CoordCartesian")) {
93+
if (!inherits(coord, "CoordCartesian") || !coord$is_linear()) {
9494
cli::cli_inform(c(
9595
"{.fn {snake_class(self)}} only works with {.fn coord_cartesian}.",
9696
i = "Falling back to drawing as {.fn {snake_class(GeomRect)}}."

0 commit comments

Comments
 (0)