lproj: Linear Prediction of Past Emissions Plots

Description Usage Arguments Examples

View source: R/lproj.R

Description

lproj draws plots with actual and predicted annual emissions since 1990 to the latest year in the dataframe provided in df argument. Three plots are provided in total, one for each of these greenhouse gases: carbon dioxide, methane and nitrous oxide. The prediction is based on the annual GDP, population and decade of the country or region of interest.

Usage

1
lproj(df, region)

Arguments

df

A dataframe containing annual carbon dioxide, methane and nitrous oxide emissions records by country or region, at least since 1990. It must include variables iso_code, year, co2, methane, nitrous_oxide, population and gdp where iso_code is a code uniquely identifying each region. The greenhouse gases emissions units should be in million tonnes of carbon dioxide-equivalents. One such dataframe can obtained from Our World in Data: https://github.com/owid/co2-data.

region

A country or region code that matches one of the iso_codes of df.

Examples

1
2
3
Greenhouse_Gas_Emissions <-
read.csv("https://raw.githubusercontent.com/owid/co2-data/master/owid-co2-data.csv")
lproj(df = Greenhouse_Gas_Emissions, region = "USA")

omunizb/climate-change documentation built on Jan. 3, 2022, 12:15 a.m.