View source: R/interactiveExtent.R
interactiveExtent | R Documentation |
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.
interactiveExtent(polyList)
polyList |
a list of Simple Feature polygons. |
A list with a polygon, and its WKT string
Pascal Title
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.