Skip to content

Commit ae7cd4b

Browse files
committed
Close #1562: handle geom_tile() with no fill aesthetic
1 parent 15807cf commit ae7cd4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/layers2traces.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ to_basic.GeomRasterAnn <- function(data, prestats_data, layout, params, p, ...)
367367
#' @export
368368
to_basic.GeomTile <- function(data, prestats_data, layout, params, p, ...) {
369369
# geom2trace.GeomTile is a heatmap, which requires continuous fill
370-
if (is.discrete(prestats_data$fill)) {
370+
if (is.discrete(prestats_data$fill %||% NA)) {
371371
data <- prefix_class(data, "GeomRect")
372372
to_basic(data, prestats_data, layout, params, p)
373373
} else {

0 commit comments

Comments
 (0)