Learn R Programming

marmap (version 1.0.3)

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.

See Also

griddify

Examples

Run this code
# NOT RUN {
# 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