Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Intermediate Interactive Data Visualization with plotly in R

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Adjust the frame and transition
ani %>% 
   animation_opts(frame = ___, transition = ___)
Code bewerken en uitvoeren