Learn R Programming

rsMove (version 0.2.5)

checkOverlap: checkOverlap

Description

Reports on how much two spatial objects overlap.

Usage

checkOverlap(x, y)

Arguments

x

A spatial object.

y

A spatial object.

Value

A two element numeric vector.

Details

Uses intersect to report on the percentage of the area of x and y that coincides with their common spatial overlap.

Examples

Run this code
# NOT RUN {
{

 require(raster)

 # load example probability image
 file <- system.file('extdata', 'probabilities.tif', package="rsMove")
 img <- raster(file)

 # load area of interest
 file <- system.file('extdata', 'roi.shp', package="rsMove")
 roi <- shapefile(file)

 # extract samples
 checkOverlap(img, roi)

}
# }

Run the code above in your browser using DataLab