plot_fuel_mix: Plot fuel mix

Description Usage Arguments Value Examples

View source: R/plot_kaya.R

Description

Plot fuel mix

Usage

1
plot_fuel_mix(fuel_mix, collapse_renewables = TRUE, title = NULL)

Arguments

fuel_mix

A tibble with the mixture of fuels:

fuel

The name of the fuel

quads

The number of quads per year the country or region consumes

frac

The percentage of the country's energy that comes from that fuel

collapse_renewables

Combine hydroelectricity and other renewables into a single category.

title

Include a title on the plot. If 'title' is 'NULL' (default) or 'TRUE', a default title is created from the names of the regions in 'fuel_mix'. If 'title' is a character string, that string is used. If 'title' is 'FALSE', the plot is produced with no title.

Value

A plot object.

Examples

1
2
3
usa_fuel <- get_fuel_mix("United States", collapse_renewables = FALSE)
plot_fuel_mix(usa_fuel)
plot_fuel_mix(usa_fuel, collapse_renewables = FALSE)

kayadata documentation built on May 1, 2019, 6:32 p.m.