contourPoints: Contour Lines to Points

View source: R/contourPoints.R

contourPointsR Documentation

Contour Lines to Points

Description

Get point coordinates and depth values along predetermined contours at a specified density.

Usage

contourPoints(object, depths = NULL, geometry = "geometry", density = 10)

Arguments

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

Value

dataframe of coordinates and associated depths

Author(s)

Tristan Blechinger, Department of Zoology & Physiology, University of Wyoming

Examples

# 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)

rLakeHabitat documentation built on April 16, 2025, 1:10 a.m.