op_ppp {groupedHyperframe}R 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,

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,

or by following functions that return a distance,

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 for each eligible marks.

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

Examples

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

fv_ppp(betacells, fn = Emark) # 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')

[Package groupedHyperframe version 0.2.1 Index]