Skip to content

ggplotly drops legend if geom_blank is used #2281

@davidhodge931

Description

@davidhodge931
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions