cia_factbook | R Documentation |
Country-level statistics from the US Central Intelligence Agency (CIA).
cia_factbook
A data frame with 259 observations on the following 11 variables.
Country name.
Land area, in square kilometers. (1 square kilometer is 0.386 square miles
Birth rate, in births per 1,000 people.
Death rate, in deaths per 1,000 people.
Infant mortality, in deaths per 1,000 live births.
Total number of internet users.
Live expectancy at birth, in years.
Number of female deaths per 100,000 live births where the death is related to pregnancy or birth.
Net migration rate.
Total population.
Population growth rate.
CIA Factbook, Country Comparisons, 2014. https://www.cia.gov/the-world-factbook/references/guide-to-country-comparisons/
library(dplyr)
library(ggplot2)
cia_factbook_iup <- cia_factbook |>
mutate(internet_users_percent = 100 * internet_users / population)
ggplot(cia_factbook_iup, aes(x = internet_users_percent, y = life_exp_at_birth)) +
geom_point() +
labs(x = "Percentage of internet users", y = "Life expectancy at birth")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.