Skip to content

Commit

Permalink
Close #1562: handle geom_tile() with no fill aesthetic
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Nov 1, 2021
1 parent 15807cf commit ae7cd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/layers2traces.R
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ to_basic.GeomRasterAnn <- function(data, prestats_data, layout, params, p, ...)
#' @export
to_basic.GeomTile <- function(data, prestats_data, layout, params, p, ...) {
# geom2trace.GeomTile is a heatmap, which requires continuous fill
if (is.discrete(prestats_data$fill)) {
if (is.discrete(prestats_data$fill %||% NA)) {
data <- prefix_class(data, "GeomRect")
to_basic(data, prestats_data, layout, params, p)
} else {
Expand Down

0 comments on commit ae7cd4b

Please sign in to comment.