results_to_shp | R Documentation |
priority_classes.shp
.This function joins the fitted model to the grid. It also saves the results
as a shapefile in the out directory under the name priority_classes.shp
.
results_to_shp(
out_dir,
probs = c(0, 0.7, 0.9, 1),
labels = c("Low", "Average", "High")
)
out_dir |
A path to directory for storing results. |
probs |
A numeric representing where to cut the priority. |
labels |
A character with labels for the priority categories. The number of labels must be one less than the number of probs. |
An sf object with the priority classes.
## Not run:
library(sf)
library(prioritizedeforestationhotspots)
out_dir <- "~/Documents/prioritize_res"
fit_model(out_dir)
results_to_shp(out_dir)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.