Transforms an object of class bathy to a SpatialGridDataFrame object.
as.SpatialGridDataFrame(bathy)
Arguments
bathy: an object of class bathy
Details
as.SpatialGridDataFrame transforms bathy objects into objects of class SpatialGridDataFrame as defined in the sp package. All methods from the sp package are thus available for bathymetric data (e.g. rotations, projections...).
Returns
An object of class SpatialGridDataFrame with the same characteristics as the bathy object (same longitudinal and latitudinal ranges, same resolution).
Author(s)
Benoit Simon-Bouhet
See Also
as.xyz, as.bathy, as.raster
Examples
# load Hawaii bathymetric datadata(hawaii)# use as.SpatialGridDataFramesp.hawaii <- as.SpatialGridDataFrame(hawaii)# Summariessummary(hawaii)summary(sp.hawaii)# structure of the SpatialGridDataFrame objectstr(sp.hawaii)# Plotsplot(hawaii,image=TRUE,lwd=.2)image(sp.hawaii)