contour.im {spatstat} | R Documentation |
Generates a contour plot of a pixel image.
## S3 method for class 'im' contour(x, ..., main, axes=TRUE, add=FALSE)
x |
Pixel image to be plotted.
An object of class |
main |
Character string to be displayed as the main title. |
axes |
Logical. If |
add |
Logical. If |
... |
Other arguments passed to |
This is a method for the generic contour
function,
for objects of the class "im"
.
An object of class "im"
represents a pixel image;
see im.object
.
This function displays the values of the pixel image x
as a contour plot on the current plot device,
using equal scales on the x and y axes.
The appearance of the plot can be modified
using any of the arguments listed in the help for
contour.default
.
Useful ones include:
Number of contour levels to plot.
Whether to label the contour lines with text.
Colour, type, and width of contour lines.
See contour.default
for a full list of these arguments.
The defaults for any of the abovementioned arguments
can be reset using spatstat.options
.
none.
Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz
# an image Z <- setcov(owin()) contour(Z) contour(Z, axes=FALSE)