# load Hawaii bathymetric data
data(hawaii)
# use as.SpatialGridDataFrame
sp.hawaii <- as.SpatialGridDataFrame(hawaii)
# Summaries
summary(hawaii)
summary(sp.hawaii)
# structure of the SpatialGridDataFrame object
str(sp.hawaii)
# Plots
plot(hawaii,image=TRUE,lwd=.2)
image(sp.hawaii)
Run the code above in your browser using DataLab