Skip to content

expression(list()) introduced when using labeller in facet #2341

@meldarionqeusse

Description

@meldarionqeusse

When I am using labeller in facet_wrap I am getting expression(list()) showing up with ggplotly.

mtcars$cyl2 <- factor(mtcars$cyl, labels = c("alpha", "beta", "gamma"))
p <- ggplot(mtcars, aes(wt, mpg)) + geom_point()

ggplotly(p + facet_wrap(. ~cyl)) # See figure 1

ggplotly(p + facet_wrap(. ~cyl, labeller = label_wrap_gen(width = 25, multi_line = FALSE))) #see figure2

Figure 1

image

Figure 2

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