constructPlot: Stacked barchart plotting function

Description Usage Arguments Details

Description

Each barchart method calls this function to construct its plot.

Usage

1
constructPlot(df, ttle, keysCol, color_scheme = NULL)

Arguments

df

data.frame, query data

ttle

string, "Query Name (region) (forcing)"

keysCol

unquoted column name, holds keys to use for ggplot fill parameter

color_scheme

named vector, GCAM color scheme

Details

This function is just a wrapper around code using the ggplot2 package. The input specifies aesthetic mappings such as title, fill, and an optional color scheme.


xavier-gutierrez/validation_figures documentation built on May 24, 2019, 9:58 p.m.