# load Hawaii bathymetric data
data(hawaii)
# use as.raster
r.hawaii <- as.raster(hawaii)
# class "RasterLayer"
class(r.hawaii)
# Summaries
summary(hawaii)
summary(r.hawaii)
# structure of the RasterLayer object
str(r.hawaii)
if (FALSE) {
# Plots
#require(raster)
plot(hawaii,image=TRUE,lwd=.2)
plot(r.hawaii)
}
Run the code above in your browser using DataLab