Extract.linnet {spatstat}R Documentation

Extract Subset of Linear Network

Description

Extract a subset of a linear network.

Usage

  ## S3 method for class 'linnet'
x[i, ...]

Arguments

x

A linear network (object of class "linnet").

i

Spatial window defining the subregion. An object of class "owin".

...

Ignored.

Details

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.

Value

Another linear network (object of class "linnet").

Author(s)

Adrian Baddeley Adrian.Baddeley@uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz

Examples

  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")

[Package spatstat version 1.38-1 Index]