plot.tess {spatstat} | R Documentation |
Plots a tessellation.
## S3 method for class 'tess' plot(x, ..., main, add=FALSE, col=NULL)
x |
Tessellation (object of class |
... |
Arguments controlling the appearance of the plot. |
main |
Heading for the plot. A character string. |
add |
Logical. Determines whether the tessellation plot is added to the existing plot. |
col |
Colour of the tile boundaries. A character string. Ignored for pixel tessellations. |
This is a method for the generic plot
function
for the class "tess"
of tessellations (see tess
).
The arguments ...
control the appearance of the plot.
They are passed to segments
,
plot.owin
or plot.im
, depending on the
type of tessellation.
None.
Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz
A <- tess(xgrid=0:4,ygrid=0:4) plot(A, col="blue", lwd=2, lty=2) B <- A[c(1, 2, 5, 7, 9)] plot(B, hatch=TRUE) v <- as.im(function(x,y){factor(round(5 * (x^2 + y^2)))}, W=owin()) levels(v) <- letters[seq(length(levels(v)))] E <- tess(image=v) plot(E)