Skip to content

tooltip argument of ggplotly doesn't recognize "color" as possible aesthetic mapping #2031

Closed
@damianooldoni

Description

@damianooldoni

While using function ggplotly() with a non-default value of argument tooltip, it seems that color (US) is not recognized as posssible value, but colour (UK) is:

library(ggplot2)
library(palmerpenguins)
library(plotly)
ggpenguins <- qplot(bill_length_mm , body_mass_g, 
                    data = penguins, color = species)
# color variable is not shown
ggplotly(ggpenguins, tooltip = c("color", "x"))
# colour (with u!) variable is shown
ggplotly(ggpenguins, tooltip = c("colour", "x"))

I don't think this is the expected behavior, isn't? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions