ClipMap: Clip map over a polygon and (re)calculate areas.

View source: R/ClipMap.R

ClipMapR Documentation

Clip map over a polygon and (re)calculate areas.

Description

Clip map over a polygon and (re)calculate areas.

Usage

ClipMap(map, catchment)

Arguments

map

SpatialPolygonsDataFrame or RasterLayer to clip (e.g. soil map containing percentage of HOST soil classes, PlynlimonSOIL).

catchment

SpatialPolygonsDataFrame containing a single catchment boundary.

Value

A SpatialPolygonsDataFrame clipped over a catchment with an additional column with updated areas.

Examples

## Not run: 
  data("PlynlimonSUBCATCHMENTS")
  data("PlynlimonSOIL")
  clippedMap <- ClipMap(map = PlynlimonSOIL,
                        catchment = PlynlimonSUBCATCHMENTS[1,])

## End(Not run)


cvitolo/curvenumber documentation built on April 19, 2022, 3:33 a.m.