View source: R/outline_raster.R
outline_raster | R Documentation |
Outlines non-na values of a raster. May want to follow up with rgeos::gsimplify to reduce number of vertices.
outline_raster(r, fact = 10)
r |
A Raster object |
fact |
aggregation factor for raster::aggregate. Useful if have very high resolution raster and tacing it causes memory issues. Also useful for filling "holes" in the middle of rasters where there may be some NA vals. By default fact=10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.