| check.bathy {marmap} | R Documentation |
Sort bathymetric data matrix by increasing latitude and longitude
Description
Reads a bathymetric data matrix and orders its rows and columns by increasing latitude and longitude.
Usage
check.bathy(x)
Arguments
x |
a matrix |
Details
check.bathy allows to sort rows and columns by increasing latitude and longitude, which is necessary for ploting with the function image (package graphics). check.bathy is used within the marmap functions read.bathy and as.bathy (it is also used in getNOAA.bathy through as.bathy).
Value
The output of check.bathy is an ordered matrix.
Author(s)
Eric Pante
See Also
read.bathy, as.bathy, getNOAA.bathy
Examples
matrix(1:100, ncol=5, dimnames=list(20:1, c(3,2,4,1,5))) -> a
check.bathy(a)
[Package marmap version 1.0.10 Index]