Description Usage Arguments Details Value Examples
Creates scenario plots by region for selected items.
1 | 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. |
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!
A ggplot object
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.