plotly.R
plotly.R copied to clipboard
geom_tile width and height are ignored in ggplotly
The height and width parameters of geom_tile are not being taken into account when converted to ggplotly, as shown in the example below.
library(plotly)
X <- data.frame(x = c(1, 2, 1, 2), y = c(1, 1, 2, 2), z = 1:4)
gg <- ggplot(X, aes(x, y)) + geom_tile(aes(fill = z), width = .5, height = .5)
gg
ggplotly(gg)
More information in this stackoverflow post.
