Creates scenario plots by region for selected items.
trend_plot(var, item, unit, reg, df_gl, df_hs, display = TRUE, result = TRUE)
| 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. |
A ggplot object
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!
if (FALSE) { trend_plot(var = "AREA", item = "CORN", unit = "1000 HA", reg = "World", df_gl = globiom, df_hs = hist) }