ComenzarEmpieza gratis

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.

Este ejercicio forma parte del curso

Intermediate Interactive Data Visualization with plotly in R

Ver curso

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# 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")
  )
Editar y ejecutar código