SpatialTools (version 1.0.4)

plot.contourLines: Plot contour lines

Description

Plot contour lines from list produced by contourLines function.

Usage

# S3 method for contourLines
plot(x, begin=1, end = length(x), add = FALSE, ...)

Value

This function does not return anything; it only creates a new plot or modifies an existing plot.

Arguments

x

The list of contour lines (created by contourLines) you want to plot.

begin

Beginning position in list of contour lines you want to plot.

end

Ending position in list of contour lines you want to plot.

add

A boolean value indicating whether the contour lines should be added to an existing plot (add = TRUE) or should be plotted on a new plot (add = FALSE).

...

Additional arguments that will be passed to the plot or lines function.

Author

Joshua French

Examples

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

Run the code above in your browser using DataCamp Workspace