LoslegenKostenlos loslegen

Nuclear bombs per country

You've been given a version of the Nuclear Explosion DataBase (NEDB) where country names are specified in the column headers (nuke_df). You want to visualize how many nukes were detonated per year per country. You'll need to pivot the data and replace NA values first.

The ggplot2 package has been pre-loaded for you.

Nuclear explosion at Bikini

"A-Day" First atomic bomb explosion at Bikini in the Marshall Islands 1 July 1946.

Photo by Science in HD

Diese Übung ist Teil des Kurses

Reshaping Data with tidyr

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

nuke_df %>% 
  # Pivot the data to a longer format
  ___
Code bearbeiten und ausführen