| plot_fuel_mix | R Documentation | 
Plot fuel mix
plot_fuel_mix(
  fuel_mix,
  collapse_renewables = TRUE,
  title = NULL,
  colors = NULL,
  font_size = 20
)
| 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. | 
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.