Learn R Programming

marmap (version 1.0.10)

irregular: Irregularly spaced bathymetric data.

Description

Three-column data.frame of irregularly-spaced longitudes, latitudes and depths.

Usage

data(irregular)

Arguments

Value

A three-columns data.frame containing longitude, latitude and depth/elevation data.

Author

Data modified form a dataset kindly provided by Noah Lottig from the university of Wisconsin https://limnology.wisc.edu/staff/lottig-noah/ in the framework of the North Temperate Lakes Long Term Ecological Research program https://lter.limnology.wisc.edu

See Also

griddify

Examples

Run this code
# load data
data(irregular)

# use griddify
reg <- griddify(irregular, nlon = 40, nlat = 60)

# switch to class "bathy"
class(reg)
bat <- as.bathy(reg)
summary(bat)

# Plot the new bathy object along with the original data
plot(bat, image = TRUE, lwd = 0.1)
points(irregular$lon, irregular$lat, pch = 19, cex = 0.3, col = col2alpha(3))

Run the code above in your browser using DataLab