check.bathy | R Documentation |
Reads a bathymetric data matrix and orders its rows and columns by increasing latitude and longitude.
check.bathy(x)
x |
a matrix |
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
).
The output of check.bathy
is an ordered matrix.
Eric Pante
read.bathy
, as.bathy
, getNOAA.bathy
matrix(1:100, ncol=5, dimnames=list(20:1, c(3,2,4,1,5))) -> a
check.bathy(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.