Description Usage Arguments Examples
View source: R/decade_increase.R
decade_increase
draws a plot of decade-to-decade change in total
greenhouse gas emissions (carbon dioxide, methane and nitrous oxide) for the
regions and decades provided as arguments. It also prints a table containing
average emissions for each country throughout the years that span the
decades provided in decades
argument.
1 | decade_increase(df, decades, regions)
|
df |
A dataframe containing annual carbon dioxide, methane and nitrous
oxide emissions records by country or region. It must include variables
|
decades |
A character vector containing the decades that should be
included in the plot, in the format |
regions |
A character vector containing the codes of countries and/or
regions that should be included in the plot. The codes must match those of
the |
1 2 3 4 5 | Greenhouse_Gas_Emissions <-
read.csv("https://raw.githubusercontent.com/owid/co2-data/master/owid-co2-data.csv")
decade_increase(Greenhouse_Gas_Emissions,
c("1990-1999", "1980-1989"),
c("USA", "GBR"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.