HPI animasyonunu cilala
Bu egzersizde, bir önceki derste oluşturduğun konut fiyat endeksi ile reel GSYH balon grafiğini iyileştireceksin.
Bu egzersiz
R ile plotly'de Orta Düzey Etkileşimli Veri Görselleştirme
kursunun bir parçasıdırUygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# Polish the axis titles and log-transform the x-axis
us_economy %>%
plot_ly(x = ~gdp, y = ~house_price) %>%
add_markers(
size = ~population, color = ~region,
frame = ~year, ids = ~state,
marker = list(sizemode = "diameter")
) %>%
layout(
___,
___
)