R/view_panel.R
view_panel.Rd
To quickly inspect the SPAMc results, view_panel
shows crop
distribution maps for a selected crop using a panel 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_panel(crop, var, param, viewer = TRUE, polygon = TRUE)
crop | Character. Crop for which the maps are shows. |
---|---|
var | Character. The variable to be plotted. |
param | Object of type |
viewer | Logical. Should the default web browers be used to show the
maps? |
polygon | Logical; should the country polygon be overlayed? |
if (FALSE) { view_panel(crop = "maiz", var = "ha", viewer = FALSE, polygon = FALSE) }