Description Usage Arguments Details
Each barchart method calls this function to construct its plot.
1 | constructPlot(df, ttle, keysCol, color_scheme = NULL)
|
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.