op_ppp: Operations on ppp.object

op_pppR Documentation

Operations on ppp.object

Description

Create fv.objects or distances from a ppp.object.

Usage

dist_ppp(x, fn, ...)

fv_ppp(x, fn, ...)

Arguments

x

a ppp.object

fn

a distance function, or a function that returns an fv.object, see Details

...

additional parameters of function fn

Details

First, the input ppp.object is unstack.ppp-ed.

Each of the numeric marks could be analyzed by following functions that return an fv.object,

  • Emark

  • Vmark

  • markcorr

  • markvario

If one of the functions above are provided but there is no numeric marks in the input, a NULL value will be returned.

Each of the marks that is.multitype could be analyzed by following functions that return an fv.object,

  • Gcross

  • Jcross

  • Kcross

  • Lcross

  • markconnect

or by following functions that return a distance,

  • .nncross()

If one of the functions above are provided but there is no marks is.multitype in the input, a NULL value will be returned.

Value

Function fv_ppp() returns a listof fv.objects, one per each eligible marks.

Function dist_ppp() returns a listof double vectors, one per each eligible marks.

Examples

library(spatstat.data)
library(spatstat.explore)

fv_ppp(betacells, fn = Emark) # applicable to numeric mark
fv_ppp(betacells, fn = Kmark) # applicable to numeric mark
fv_ppp(betacells, fn = Gcross, i = 'off', j = 'on') # applicable to multitype mark

dist_ppp(betacells, fn = .nncross, i = 'off', j = 'on')
dist_ppp(gorillas, fn = .nncross, i = 'major', j = 'minor')
dist_ppp(gorillas, fn = .nncross, i = 'rainy', j = 'dry')

groupedHyperframe documentation built on June 8, 2025, 10:13 a.m.