Description Usage Arguments Examples
View source: R/bar_chart_plot.R
Create bar chart of processed data
1 2 3 | bar_chart_plot(data, output_dir, fill_col = attributes(data)$fill,
colors = attributes(data)$colors, diff = F, region = NULL, width = 10,
height = 7, break_size = 10, remove_title = F)
|
data |
Dataframe/tibble of processed GCAM data |
output_dir |
Output directory to save charts to |
fill_col |
Column name, in quotes, to color by. Defaults to attribute of "fill" for processed data. |
colors |
Vector of colors for chart. Defaults to attribute of "colors" for processed data |
diff |
If true, adds subtitle to plot and DIFF to output name |
region |
String of region name to filter by |
break_size |
Interval of years to print on x axis, starting with minimum year in data. Default is 10 years |
1 2 | bar_chart_plot(df, output_dir = "/outputs", fill = "technology", colors = c("red", "blue"))
bar_chart_plot(data[["primary_energy"]], output_dir = "/outputs")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.