op_ppp | R Documentation |
Create fv.objects or distances from a ppp.object.
dist_ppp(x, fn, ...)
fv_ppp(x, fn, ...)
x |
a ppp.object |
fn |
a distance function, or a function that returns an fv.object, see Details |
... |
additional parameters of function |
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.
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.
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.