spatstat (version 1.55-1)

unstack.solist: Unstack Each Spatial Object in a List of Objects

Description

Given a list of two-dimensional spatial objects, apply

Usage

# S3 method for solist
unstack(x, …)

# S3 method for layered unstack(x, …)

Arguments

x

An object of class "solist" or "layered" representing a list of two-dimensional spatial objects.

Ignored.

Value

A list belonging to the same class as x.

Details

The functions defined here are methods for the generic unstack. They expect the argument x to be a list of spatial objects, of class "solist" or "layered".

Each spatial object in the list x will be unstacked by applying the relevant method for unstack. This means that

  • a marked point pattern with several columns of marks will be separated into several point patterns, each having a single column of marks

  • a measure with \(k\)-dimensional vector values will be separated into \(k\) measures with scalar values

The resulting unstacked objects will be collected into a list of the same kind as x. Typically the length of unstack(x) is greater than the length of x.

See Also

unstack

unstack.msr, unstack.ppp, unstack.lpp, unstack.psp

Examples

Run this code
# NOT RUN {
  A <- solist(finpines=finpines, cells=cells)
  A
  unstack(A)
  B <- layered(fin=finpines, loc=unmark(finpines),
              plotargs=list(list(), list(pch=16)))
  B
  plot(B)
  unstack(B)
  plot(unstack(B))
# }

Run the code above in your browser using DataCamp Workspace