Description Usage Arguments Examples
View source: R/plot_2diicharts.R
The function returns a ggplot object containing a stacked bar chart showing a technology mix for different categories (portfolio, scenario, benchmark, etc.).
1 2 3 4 5 6 7 | plot_techmix(
data,
plot_title = "",
show_legend = TRUE,
df_tech_colours,
df_bar_specs
)
|
data |
Filtered input data (dataframe with columns: technology, metric_type, metric and value). |
plot_title |
Title of the plot (character string). |
show_legend |
Flag indicating whether legend should be shown (boolean). |
df_tech_colours |
Dataframe containing colors per technology (dataframe with columns: technology, label, color). |
df_bar_specs |
Dataframe containing order of bars and their labels (dataframe with columns: metric_type, label). |
1 | # TODO create an example or copy-paste an existing one from README or a test.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.