Annotations at different frames of animation in R

Hello,

I want to add annotations at each different frame of my animation. Can you please help?

I have a figure which has different frames per date but I don’t know how to do add animations at each frame:

fig <- plot_ly(dt, x = x, y = y, colors=colorMap,
type=‘scatter’,mode=‘markers+text’,
marker = list(symbol=‘circle’,sizemode=‘diameter’),
text=~text, frame=~dates)

fig <- fig %>% add_annotations(
x=0.5,
y=1,
text = paste(“Frame:”,frame)
)

Thanks,
E

Hello, do you have any updates on this? :slight_smile: