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.
Diese Übung ist Teil des Kurses
Intermediate Interactive Data Visualization with plotly in R
Interaktive Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# 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")
)