view_results | R Documentation |
To quickly inspect the mapspamc
results, view_results()
shows crop
distribution maps for a selected crop using a panel for each production system.
This function works after combine_results()
is run. There is no need to
run create_all_tif()
. The maps are visualized using
leafletjs, which makes it possible to select a
number of background tiles (e.g. OpenStreetMap).
view_results(crp, var, param, viewer = TRUE, polygon = TRUE)
crp |
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? |
## Not run:
view_results(crop = "maiz", var = "ha", viewer = FALSE, polygon = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.