trend_plot: Create plots for GLOBIOM scenarios

Description Usage Arguments Details Value Examples

View source: R/trend_plot.R

Description

Creates scenario plots by region for selected items.

Usage

1
trend_plot(var, item, unit, reg, df_gl, df_hs, display = TRUE, result = TRUE)

Arguments

var

VAR_ID

item

ITEM_AG

unit

VAR_UNIT

reg

REGION_AG

df_gl

Data frame with globiom output.

df_hs

Data frame with historical data aggregated to GLOBIOM nomenclature.

display

If TRUE display the plot.

result

If TRUE return plot object result.

Details

Note that the function uses standard GLOBIOM variable (VAR_ID), item (ITEM_AG), unit (VAR_UNIT) and region (REGION_AG) nomenclature as input. VAR_ID, ITEM_AG and VAR_UNIT have to be in upper case!

Value

A ggplot object

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
trend_plot(var   = "AREA",
           item  = "CORN",
           unit  = "1000 HA",
           reg   = "World",
           df_gl = globiom,
           df_hs = hist)

## End(Not run)

iiasa/GLOBIOMtools documentation built on April 6, 2020, 7:42 a.m.