plotly.R icon indicating copy to clipboard operation
plotly.R copied to clipboard

ggplotly drops legend if geom_blank is used

Open davidhodge931 opened this issue 2 years ago • 0 comments

library(palmerpenguins)
library(tidyverse)

p <- penguins |>
  ggplot(aes(
    x = flipper_length_mm,
    y = body_mass_g,
    col = sex)) +
  geom_blank() +
  geom_point()
p

plotly::ggplotly(p)
image

davidhodge931 avatar Jul 29 '23 02:07 davidhodge931