Learn R Programming

ocedata (version 0.1.6)

topo2: World topography data, on a 2-degree grid.

Description

A matrix containing world topography data, on a 2-degree grid. This is provided for occasions where the higher resolution topography in topoWorld from the Oce package is not needed. See “Examples” for a plot that illustrates the longitude and latitude grid for the data.

Usage

data(topo2)

Arguments

Examples

Run this code
# NOT RUN {
# Compare with topoWorld in oce
library("oce")
data(topoWorld, package="oce")
w <- topoWorld
contour(w[['longitude']], w[['latitude']], w[['z']], level=0, drawlabels=FALSE)
data(topo2, package="ocedata")
lon <- seq(-179.5, 178.5, by=2)
lat <- seq(-89.5, 88.5, by=2)
contour(lon, lat, topo2, level=0, add=TRUE, col='red', lty='dotted', drawlabels=FALSE)
# }

Run the code above in your browser using DataLab