Aan de slagGa gratis aan de slag

Animating the private space race

In recent years the major players in spaceflight have shifted from government agencies to private companies. In this exercise, your task is to create an animation to explore the evolution of this "new" space race. The data set private_launches contains the variables:

  • tag - launch ID
  • year - launch year
  • agency_code - agency abbreviation
  • agency_name - agency name
  • agency_type - an established private company or a startup
  • category - success (O) or failure (F) of the launch

plotly, dplyr, tidyr, and purrr have been loaded for you.

Deze oefening maakt deel uit van de cursus

Intermediate Interactive Data Visualization with plotly in R

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Complete the private_launches data set
annual_launches <- private_launches %>%
  count(year, agency_name) %>%
  ___(___, ___, ___)
Code bewerken en uitvoeren