Skip to content

Commit 32020c2

Browse files
committed
pass along x/y attrs in add_heatmap()
1 parent 1c9c85d commit 32020c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/add.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ add_heatmap <- function(p, x = NULL, y = NULL, z = NULL, ...,
412412
stop("Must supply `z` attribute", call. = FALSE)
413413
}
414414
add_trace_classed(
415-
p, class = "plotly_heatmap", z = z,
415+
p, class = "plotly_heatmap", z = z, x = x, y = y,
416416
type = "heatmap", ..., data = data, inherit = inherit
417417
)
418418
}

0 commit comments

Comments
 (0)