Hi All,
It looks like plotly::ggplotly breaks when the ggplot2 key_glyph argument is used.
Does anyone know a way to make this work?
Thanks!!!
library(tidyverse)
plot_data <- slice_sample(ggplot2::diamonds, prop = 0.01)
#this works
plot <- ggplot(plot_data) +
geom_point(aes(carat, price, col = color, fill = color))
plot
plotly::ggplotly(plot)
#this does not work
plot <- ggplot(plot_data) +
geom_point(aes(carat, price, col = color, fill = color), key_glyph = "polygon")
plot
plotly::ggplotly(plot)