View source: R/contourPoints.R
contourPoints | R Documentation |
Get point coordinates and depth values along predetermined contours at a specified density.
contourPoints(object, depths = NULL, geometry = "geometry", density = 10)
object |
polygon or multipolygon shapefile (.shp) with depths included as an attribute column. Can be an sf or spatVector object. |
depths |
character string describing column name of depth attribute |
geometry |
character string describing column name of geometries. Default = "geometry" |
density |
numeric value describing distance between points in meters, default = 10m |
dataframe of coordinates and associated depths
Tristan Blechinger, Department of Zoology & Physiology, University of Wyoming
# load test data
data <- sf::read_sf(system.file("extdata", "example_contour.shp", package = 'rLakeHabitat'))
#run function
contourPoints(data, depths = "Z", geometry = "geometry", density = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.