outline_raster: Outlines non-na values of a raster

View source: R/outline_raster.R

outline_rasterR Documentation

Outlines non-na values of a raster

Description

Outlines non-na values of a raster. May want to follow up with rgeos::gsimplify to reduce number of vertices.

Usage

outline_raster(r, fact = 10)

Arguments

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


ailich/mytools documentation built on Jan. 7, 2023, 11:16 a.m.