| Extract.linnet {spatstat} | R Documentation |
Extract a subset of a linear network.
## S3 method for class 'linnet' x[i, ...]
x |
A linear network (object of class |
i |
Spatial window defining the subregion.
An object of class |
... |
Ignored. |
This function computes the intersection
between the linear network x and the domain specified by i.
This function is a method for the subset operator "[" for
linear networks (objects of class "linnet"). It is provided
mainly for completeness.
The index i should be a window.
Another linear network (object of class "linnet").
Adrian Baddeley Adrian.Baddeley@uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz
plot(simplenet) B <- owin(c(0,1),c(0.2,0.5)) plot(simplenet[B], add=TRUE, col="red") plot(B, add=TRUE, border="green")