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

ggplotly does not support multiple aesthetics in a scale_* function

Open davidhodge931 opened this issue 2 years ago • 1 comments

p <- ggplot(penguins) +
  geom_histogram(aes(
    x = body_mass_g,
    col = species,
    fill = species,
  ), 
  alpha = 0.5
  ) +
  scale_color_manual(values = c("red", "blue", "green"), 
                     aesthetics = c("colour", "fill"))


p

plotly::ggplotly(p)

davidhodge931 avatar Apr 23 '22 22:04 davidhodge931

#1933 is the same issue

davidhodge931 avatar Jun 04 '22 22:06 davidhodge931