plot_techmix | R Documentation |
Create a techmix plot
plot_techmix( data, span_5yr = FALSE, convert_label = identity, convert_tech_label = identity )
data |
A data frame. Requirements:
|
span_5yr |
Logical. Use |
convert_label |
A symbol. The unquoted name of a function to apply to y-axis labels. For example:
|
convert_tech_label |
A symbol. The unquoted name of a function to apply
to technology legend labels. For example, to convert labels to uppercase
use |
An object of class "ggplot".
market_share.
# `data` must meet documented "Requirements" data <- subset( market_share, scenario_source == "demo_2020" & sector == "power" & region == "global" & metric %in% c("projected", "corporate_economy", "target_sds") ) plot_techmix(data) # plot with `qplot_techmix()` parameters plot_techmix( data, span_5yr = TRUE, convert_label = recode_metric_techmix, convert_tech_label = spell_out_technology )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.