LoslegenKostenlos starten

Polishing your HPI animation

In this exercise, you will polish the bubble chart of housing price index against real GDP that you created in the last lesson.

Diese Übung ist Teil des Kurses

<Kurs>Intermediate Interactive Data Visualization with plotly in R</Kurs>
Kurs ansehen

Interaktive praktische Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# 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(
    ___,
    ___
  )
Code bearbeiten und ausführen