Learn R Programming

rLakeHabitat

This package offers bathymetric interpolation using Inverse Distance Weighted and Ordinary Kriging via the gstat and terra packages. Other functions focus on quantifying physical aquatic habitats (e.g., littoral, epliminion, metalimnion, hypolimnion) from interpolated DEMs. Functions were designed to calculate these metrics across water levels for use in reservoirs but can be applied to any DEM and will provide values for fixed conditions. Parameters like Secchi disk depth or estimated photic zone, thermocline depth, and water level fluctuation depth are included in most functions.

To install and load 'rLakeHabitat' in R, run the following (requires the devtools package):

devtools::install_gitlab("tristanblechinger/rlakehabitat")

require(rLakeHabitat)

Copy Link

Version

Install

install.packages('rLakeHabitat')

Monthly Downloads

170

Version

1.0.1

License

GPL (>= 3)

Maintainer

Tristan Blechinger

Last Published

November 7th, 2025

Functions in rLakeHabitat (1.0.1)

rarify

Rarify Depth Data
littoralVol

Calculate Littoral Volume
interpBathy

Interpolate bathymetry
calcHyps

Calculate Hypsography
calcLittoral

Calculate Littoral Area
calcVolume

Calculate Pelagic Habitat Volumes
calcSDI

Calculate Shoreline Development Index
animBathy

Generate Animated Plot
crossValidate

Cross Validate Interpolated Bathymetry
estThermo

Estimate Average Thermocline Depth
contourPoints

Contour Lines to Points
bathyMap

Plot Bathymetry Map
genStack

Create Raster Stack