powered by
Get point coordinates and depth values along predetermined contours at a specified density.
contourPoints(object, depths = NULL, geometry = "geometry", density = 10)
dataframe of coordinates and associated depths
polygon or multipolygon shapefile (.shp) with depths included as an attribute column. Can be an sf or spatVector object.
character string describing column name of depth attribute
character string describing column name of geometries. Default = "geometry"
numeric value describing distance between points in meters, default = 10m
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)
Run the code above in your browser using DataLab