plot_emission_intensity: Create an emission intensity plot

View source: R/plot_emission_intensity.R

plot_emission_intensityR Documentation

Create an emission intensity plot

Description

Create an emission intensity plot

Usage

plot_emission_intensity(data, span_5yr = FALSE, convert_label = identity)

Arguments

data

A data frame. Requirements:

  • The structure must be like sda.

  • The column sector must have a single value (e.g. "cement").

  • (Optional) If present, the column label is used for data labels.

span_5yr

Logical. Use TRUE to restrict the time span to 5 years from the start year (the default behavior of qplot_emission_intensity()), or use FALSE to impose no restriction.

convert_label

A symbol. The unquoted name of a function to apply to y-axis labels. For example:

  • To convert labels to uppercase use convert_label = toupper.

  • To get the default behavior of qplot_emission_intensity() use convert_label = to_title.

Value

An object of class "ggplot".

See Also

sda.

Examples

# `data` must meet documented "Requirements"
data <- subset(sda, sector == "cement" & region == "global")
plot_emission_intensity(data)

# plot with `qplot_emission_intensity()` parameters
plot_emission_intensity(
  data,
  span_5yr = TRUE,
  convert_label = to_title
)

2DegreesInvesting/r2dii.plot documentation built on May 12, 2022, 3:53 a.m.