interactiveExtent: Interactively choose extent

View source: R/interactiveExtent.R

interactiveExtentR Documentation

Interactively choose extent

Description

Given a list of polygons, sets up an interactive plot to allow the user to draw the desired extent. This can be used to define the extent in rasterStackFromPolyList.

Usage

interactiveExtent(polyList)

Arguments

polyList

a list of Simple Feature polygons.

Value

A list with a polygon, and its WKT string

Author(s)

Pascal Title

Examples

## Not run: 
ex <- interactiveExtent(tamiasPolyList)

# You can use this as the extent in createSpeciesRaster
ranges <- rasterStackFromPolyList(tamiasPolyList, resolution = 20000, extent = ex$wkt)
spRas <- createSpeciesRaster(ranges = ranges)


## End(Not run)

ptitle/speciesRaster documentation built on June 11, 2022, 1:35 a.m.