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

Exercise

Adding background text

In the previous lesson, you polished your animated bubble chart of housing price index against real GDP. In this exercise, you will continue to polish this graphic by displaying the year in the background of the animation.

Instructions

100 XP
  • Add the year as background text. You should center the text at the point (200000, 450), set the font color to gray80, and set the font size to 150.
  • Use animation_slider() to hide the slider.