Hi All,
sctter3d animation goes away with redraw=FALSE but does not go away with just scatter. Below reprex works but animation goes away when you set redraw=FALSE. Animation comes back if instead you use scatter, the 2d version. Is this a bug in scatter3d? Same question was asked on Plotly.py but without reprex and without resolution.
library(plotly)
df <- data.frame(
x = c(3,0,0,3, 2,0,0,3, 1,0,0,3, 0,0,0,3, 0,0,0,3),
y = c(0,0,3,0, 0,0,3,0, 0,0,3,0, 0,0,3,0, 1,0,3,0),
z = c(2,3,0,0, 2,3,0,0, 2,3,0,0, 2,3,0,0, 2,3,0,0),
f = c(1,1,1,1, 2,2,2,2, 3,3,3,3, 4,4,4,4, 5,5,5,5)
)
fig <- df %>%
plot_ly(
x = ~x,
y = ~y,
z = ~z,
frame = ~f,
type = 'scatter3d',
mode = 'markers',
showlegend = FALSE
) %>%
animation_opts(1000, redraw = TRUE)
fig