hawaii | R Documentation |
Bathymetric object of class bathy
created from NOAA GEODAS data and arbitrary locations around the main Hawaiian islands.
data(hawaii)
data(hawaii.sites)
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.
hawaii
: a bathymetric object of class bathy
with 539 rows and 659 columns.
hawaii.sites
: data.frame (6 rows, 2 columns)
see https://maps.ngdc.noaa.gov/viewers/wcs-client/
plot.bathy
, summary.bathy
# load hawaii data
data(hawaii)
data(hawaii.sites)
# class "bathy"
class(hawaii)
summary(hawaii)
## Not run:
## 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.