Animation plot with geom_bar, is it possible?

GoodMorning to everyone,

I’m trying to make an animated plot with plotly and it worked pretty good with the following code:

p <- ggplot(ph2, aes(variable, value, color = variable)) +geom_point(aes(size = value, frame = ID))
p2<- ggplotly ( p )

but then I would like to have barplot and not geom point so I try to use geom_bar but i get:

Error in data$group: invalid argument of unary operator

How can I make a barplot as animation plot?

thanks a lot for your help


Hey @Aq87

Looks like there is an open issue for this one