plot_fuel_mix {kayadata} | R Documentation |
Plot fuel mix
Description
Plot fuel mix
Usage
plot_fuel_mix(
fuel_mix,
collapse_renewables = TRUE,
title = NULL,
colors = NULL,
font_size = 20
)
Arguments
fuel_mix |
A tibble with the mixture of fuels for one or more countries or regions:
|
collapse_renewables |
Combine hydroelectricity and other renewables into a single category. |
title |
Include a title on the plot. If |
colors |
A named vector with the colors to use for
|
font_size |
The base font size. |
Value
A plot object.
Examples
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")
[Package kayadata version 1.4.0 Index]