Get startedGet started for free

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.

This exercise is part of the course

Intermediate Interactive Data Visualization with plotly in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample 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")
  )
Edit and Run Code