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

`expression(list())` introduced when using labeller in facet

Open meldarionqeusse opened this issue 1 year ago • 0 comments

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

meldarionqeusse avatar Feb 27 '24 10:02 meldarionqeusse