load.bathy {rLakeAnalyzer} | R Documentation |
Import lake bathymetry data.
Description
Imports lake bathymetry data. Bathymetric data file must be a 2 column array where depth (in meters) and area (in meters^2) information are provided in columns with headers containing the words "depths" and "areas" respectively.
Usage
load.bathy(fPath)
Arguments
fPath |
File path to the bathymetry file. |
Value
data.frame of depth and area for given lake.
See Also
Examples
#Get the path for the package example file included
exampleFilePath <- system.file('extdata', 'Sparkling.bth', package="rLakeAnalyzer")
#Load and plot the hypsometric curve
sparkling.bathy = load.bathy(exampleFilePath)
#If successful, there will be two colums. "depths", and "areas".
plot(sparkling.bathy$areas, sparkling.bathy$depths, type='l', ylim=c(20,0),
ylab='Depths (m)', xlab='Areas (m^2)')
[Package rLakeAnalyzer version 1.11.4.1 Index]