bar_chart_plot: bar_chart_plot

Description Usage Arguments Examples

View source: R/bar_chart_plot.R

Description

Create bar chart of processed data

Usage

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)

Arguments

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

Examples

1
2
bar_chart_plot(df, output_dir = "/outputs", fill = "technology", colors = c("red", "blue"))
bar_chart_plot(data[["primary_energy"]], output_dir = "/outputs")

russellhz/gcamchartr documentation built on May 24, 2019, 7:18 a.m.