Learn R Programming

openintro (version 2.4.0)

sa_gdp_elec: Sustainability and Economic Indicators for South Africa.

Description

Includes yearly data on gdp, gni, co2 emissions, start up costs.

Usage

sa_gdp_elec

Arguments

Format

A data frame with 16 rows and 7 variables.

year

Year data collected.

access_elec

Access to electricity as a percentage of the population.

startup

cost of business startup procedures as a percent of GNI.

co2

CO2 emission in kt (kiloton).

gdp

GDP per capita, PPP in constant 2017 international dollars.

gni

GNI per capita, PPP in constant 2017 international dollars.

co2_kg_ppp

kg per 2017 PPP dollars of GDP.

Examples

Run this code
library(ggplot2)

ggplot(sa_gdp_elec, aes(year, access_elec))+
 geom_point(alpha = 0.3) +
 labs( x= "Year",
       y = "Percent of Population",
       title = "Access to Electricity in South Africa 2003 - 2018")

Run the code above in your browser using DataLab