Aan de slagGa gratis aan de slag

Your first SPLOM

How closely related are North American and European video game sales? How do sales in Japan compare to North America and Europe? In this exercise you will create a scatterplot matrix (abbreviated as SPLOM) to explore these questions based on the vgsales2016 dataset.

Note that plotly has already been loaded for you.

Deze oefening maakt deel uit van de cursus

Interactive Data Visualization with plotly in R

Cursus bekijken

Oefeninstructies

  • Create a scatterplot matrix including NA_Sales, EU_Sales, and JP_Sales (in that order).
  • Label the panels N. America, Europe, and Japan, respectively.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Create a SPLOM of NA_Sales, EU_Sales, and JP_Sales
vgsales2016 %>%
  plot_ly() %>%
  add_trace(
    type = ___,
    dimensions = list(
      list(label = ___, values = ___),
      list(label = ___, values = ___),
      list(label = ___, values = ___)
    )
  )
Code bewerken en uitvoeren