Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
meldarionqeusse opened this issue Feb 27, 2024 · 0 comments
Open

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

meldarionqeusse opened this issue Feb 27, 2024 · 0 comments

Comments

@meldarionqeusse
Copy link

meldarionqeusse commented Feb 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant