Learn R Programming

SpatialTools (version 1.0.5)

get.contours: Extracts coordinates from contourLines function

Description

Takes contours of contourLines function and extracts the associated coordinates.

Usage

get.contours(x)

Value

Returns a 2-column matrix containing the coordinates making up the contours in contours.list.

Arguments

x

A list returned by the contourLines function.

Author

Joshua French

See Also

contourLines, contour

Examples

Run this code
data(volcano)
x <- 10*1:nrow(volcano)
y <- 10*1:ncol(volcano)
cL <- contourLines(x, y, volcano)
out <- get.contours(cL)

Run the code above in your browser using DataLab