A simple motion scatter chart using the mpg dataset.
convert a normal scatter chart to motion chart by giving frame attribute
> plot_ly(type = "scatter",data = mpg, x = ~displ, y= ~cty,frame = ~year, color = ~factor(cyl),mode = "markers")
Check here for more examples.