BaşlayınÜcretsiz Başlayın

Polishing a scatterplot

Are best-selling video games generally well received by critics? To investigate this question, you'll create a scatterplot of critic score against global sales.

As you have seen, global sales differ by an order of magnitude across the distribution. In such cases, exploring the data on a transformed scale is wise. In this exercise, display global sales on the log scale.

As always, don't forget to use informative axis labels!

Note that plotly has been loaded for you.

Bu egzersiz

Interactive Data Visualization with plotly in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Apply a log transformation to the x-axis within the layout() command.
  • Label the x-axis "Global sales (millions of units)" and the y-axis "Critic score".

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Polish the scatterplot by transforming the x-axis and labeling both axes
vgsales2016 %>%
  plot_ly(x = ~Global_Sales, y = ~Critic_Score) %>%
  add_markers(marker = list(opacity = 0.5)) %>%
  ___(xaxis = list(___, ___),
         yaxis = list(___))
Kodu Düzenle ve Çalıştır