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

Adding a third variable

In this exercise, you'll add color to a scatterplot based on a third variable in an effort to explore the relationship between the user score and critic scores of video games in 2016.

plotly has already 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ı

  • Change the marker color in the scatterplot of user score (User_Score) against critic score (Critic_Score) to represent Genre.
  • Use Dark2 instead of the default color palette.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Use color to add Genre as a third variable
vgsales2016 %>%
  plot_ly(___, ___, ___) %>%
  ___(___)
Kodu Düzenle ve Çalıştır