mco_mask | R Documentation |
Mask a raster using fasterize
mco_mask(rast, mask)
rast |
A Raster* object to be masked |
mask |
A simple features polygon dataset to act as the mask. |
A masked Raster* object.
## Not run:
library(mcor)
library(magrittr)
raster::plot(mt_hillshade_500m)
# Mask to Missoula county
mco_mask(rast = mt_hillshade_500m,
mask = dplyr::filter(mt_counties, County == "Missoula")) %>%
raster::plot()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.