View source: R/as.SpatialGridDataFrame.R
| as.SpatialGridDataFrame | R Documentation |
Transforms an object of class bathy to a SpatialGridDataFrame object.
as.SpatialGridDataFrame(bathy)
bathy |
an object of class |
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...).
An object of class SpatialGridDataFrame with the same characteristics as the bathy object (same longitudinal and latitudinal ranges, same resolution).
Benoit Simon-Bouhet
as.xyz, as.bathy, as.raster
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.