CommencerCommencer gratuitement

Launches over time

In the following exercises, you will explore the launches data, which attempts to list all orbital launches (both successful and unsuccessful). Before creating animations or linked views, you'll explore how the number of launches and the sponsoring agencies have evolved over time. In this exercise, your task is to visualize the evolution of launches over time three ways. Be sure to think about the relative strengths and weaknesses of each chart type.

The launches data frame, and the plotly and dplyr packages are already loaded.

Cet exercice fait partie du cours

Intermediate Interactive Data Visualization with plotly in R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# table of launches by year
launches_by_year <- launches %>%
  count(launch_year)

# create a line chart of launches over time
launches_by_year %>%
  ___(x = ___, y = ___) %>%
  ___() %>%
  layout(
    xaxis = list(title = "Year"), 
    yaxis = list(title = "Launches")
  )
Modifier et exécuter le code