R/view_stack.R
view_stack.Rd
To quickly inspect the SPAMc results, view_stack
shows crop
distribution maps for a selected crop stacking the maps for each farming
system. The maps are visualized using leafletjs,
which makes it possible to select a number of background tiles (e.g.
OpenStreetMap).
view_stack(crp, var, param, viewer = TRUE, polygon = TRUE)
Character. Crop for which the maps are shows. crp
has to be
one of the SPAMc four letter crop codes.
Character. The variable to be plotted. var
has to be physical
area ("pa"
) or harvested area ("ha"
).
Object of type spam_par
that bundles all SPAM parameters,
including core model folders, alpha-3 country code, year, spatial
resolution, most detailed level at which subnational statistics are
available, administrative unit level at which the model is solved and type of
model.
Logical. Should the default web browers be used to show the
maps? FALSE
will show the maps in the RStudio viewer pane.
Logical; should the country polygon be overlayed?
if (FALSE) view_stack(crop = "maiz", var = "ha", viewer = FALSE,
polygon = FALSE)