Plot fuel mix
plot_fuel_mix(
fuel_mix,
collapse_renewables = TRUE,
title = NULL,
colors = NULL,
font_size = 20
)
A tibble with the mixture of fuels for one or more countries or regions:
The name of the country or region
The name of the fuel
The number of quads per year the country or region consumes
The fraction of the country's energy that comes from that fuel
Combine hydroelectricity and other renewables into a single category.
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.
A named vector with the colors to use for
Coal
, Oil
, Natural Gas
, Nuclear
, Hydro
, and Renewables
.
The base font size.
A plot object.
usa_fuel <- get_fuel_mix("United States", collapse_renewables = FALSE)
plot_fuel_mix(usa_fuel)
plot_fuel_mix(usa_fuel, collapse_renewables = FALSE)
plot_fuel_mix(usa_fuel, collapse_renewables = FALSE,
colors = c(Coal = "black", "Natural Gas" = "gray60",
Oil = "gray30", Nuclear = "forestgreen",
Hydro = "royalblue", Renewables="palegreen"))
plot_fuel_mix("United States")
plot_fuel_mix("USA")