MulaiMulai sekarang secara gratis

Animating median life expectancies

The data frame of median HPI for region in each year you created in the previous exercise is stored as the object med_hpi.

In this exercise, you will work through the steps to create a cumulative time series animation displaying how the median HPI for each region has changed over time.

Note that plotly, dplyr, and purrr have been loaded for you.

Latihan ini adalah bagian dari kursus

Intermediate Interactive Data Visualization with plotly in R

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Split the med_hpi data frame by year
med_hpi %>%
  ___(___)
Edit dan Jalankan Kode