line_chart_plot: line_chart_plot

Description Usage Arguments Examples

View source: R/line_chart_plot.R

Description

Create line chart of processed data

Usage

1
2
3
line_chart_plot(data, output_dir, fill_col = "scenario", diff = F,
  region = NULL, width = 10, height = 7, break_size = 10,
  manual_colors = NULL, jitter = 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. Default is "scenario". To use other column, may need to add facet.

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
line_chart_plot(df, output_dir = "/outputs")
line_chart_plot(data[["primary_energy"]], output_dir = "/outputs")

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