Georgios Karamanis gathered and shared data on Nobel prize winners over the years, with a fair amount of detail, and used in the tidytuesday series a while back. These data are to be used for the questions that follow.
| variable | class | description |
|---|---|---|
| prize_year | double | Year that Nobel Prize was awarded |
| category | character | Field of study/category |
| prize | character | Prize Name |
| motivation | character | Motivation of the award |
| prize_share | character | Share eg 1 of 1, 1 of 2, 1 of 4, etc |
| laureate_id | double | ID assigned to each winner |
| laureate_type | character | Individual or organization |
| full_name | character | name of the winner |
| birth_date | double | birth date of winner |
| birth_city | character | birth city/state of winner |
| birth_country | character | birth country of winner |
| gender | character | binary gender of the winner |
| organization_name | character | organization name |
| organization_city | character | organization city |
| organization_country | character | organization country |
| death_date | double | death date of the winner (if dead) |
| death_city | character | death city (if dead) |
| death_country | character | death country (if dead) |
nobel.df that keeps only records starting in the year 1960, and only for the “Physics” category. Now generate an appropriate chart that shows the distribution of winners by birth_countrylibrary(tidyverse)
library(tidylog)
nobel_winners %>%
filter(category == "Physics", prize_year >= 1960) -> nobel.df
ggplot() +
geom_bar(
data = nobel.df,
aes(x = birth_country)
) +
labs(x = "Birth Country", y = "Number of Nobel Laureates",
title = "Bar-chart of Nobel Laureates by Country of Birth") +
coord_flip() gender to see how winners by country differs across gendernoble_winners, the full data-set, and create a simple plot that shows the distribution of prize winners by death_country, gender, and categorynobel_winners %>%
filter(!is.na(death_country)) -> nobel.df
ggplot() +
geom_bar(
data = nobel.df,
aes(x = death_country, group = gender, fill = gender)
) +
labs(x = "Death Country", y = "Number of Nobel Laureates",
title = "Bar-chart of Nobel Laureates by Country of Death, Gender, and Prize category") +
coord_flip() +
facet_wrap(~ category)