1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Interactive Data Visualization with plotly in R

Connected

Exercise

Polishing your regional animation

In lesson 1, you created an animation that cycled through bubble charts of the housing price index against real GDP by region. In this exercise, your task is to polish that animation.

The animation you generated in the last chapter is stored as the object ani, and plotly has already been loaded for you.

A full list of the easing options can be found in here. Notice that you can append -in, -out, and -in-out to the easing options outlined in the lesson to further customize the transitions between frames.

Instructions 1/4

undefined XP
    1
    2
    3
    4
  • Change the animation options so that each transition takes 300 milliseconds and each frame is displayed for 1700 milliseconds after the transition.