Learn R Programming

marmap (version 1.0.10)

hawaii: Bathymetric data for Hawaii, USA

Description

Bathymetric object of class bathy created from NOAA GEODAS data and arbitrary locations around the main Hawaiian islands.

Usage

data(hawaii)
data(hawaii.sites)

Arguments

Value

hawaii: a bathymetric object of class bathy with 539 rows and 659 columns. hawaii.sites: data.frame (6 rows, 2 columns)

Details

hawaii contains data imported from the NOAA GEODAS Grid Translator webpage (https://maps.ngdc.noaa.gov/viewers/wcs-client/) and transformed into an object of class bathy by read.bathy. hawaii.sites is a 2-columns data.frame containing longitude and latitude of 6 locations spread at sea around Hawaii.

See Also

plot.bathy, summary.bathy

Examples

Run this code
# load hawaii data
	data(hawaii)
	data(hawaii.sites)

# class "bathy"
	class(hawaii)
	summary(hawaii)

if (FALSE) {
## use of plot.bathy to produce a bathymetric map
# creation of a color palette
	pal <- colorRampPalette(c("black","darkblue","blue","lightblue"))

# Plotting the bathymetry
	plot(hawaii,image=TRUE,draw=TRUE,bpal=pal(100),asp=1,col="grey40",lwd=.7)

# Adding coastline
	require(mapdata)
	map("worldHires",res=0,fill=TRUE,col=rgb(.8,.95,.8,.7),add=TRUE)

# Adding hawaii.sites location on the map
	points(hawaii.sites,pch=21,col="yellow",bg=col2alpha("yellow",.9),cex=1.2)
}

Run the code above in your browser using DataLab