50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

spatstat (version 1.17-5)

spatstat-internal: Internal spatstat functions

Description

Internal spatstat functions.

Usage

## S3 method for class 'hyperframe':
[(x, i, j, drop=FALSE, ...)
## S3 method for class 'hyperframe':
[(x, i, j) <- value
## S3 method for class 'hyperframe':
$(x, name)
## S3 method for class 'hyperframe':
$(x, i) <- value
acedist.show(X, Y, n, d, timelag = 0)
acedist.noshow(X, Y, n, d)
adjustthinrange(ur,vstep,vr)
affinexy(X, mat = diag(c(1, 1)), vec = c(0, 0))
affinexypolygon(p, mat, vec, detmat)
anycrossing.psp(A,B)
apply23sum(x)
area.xypolygon(polly)
AsymmDistance.psp(X, Y, metric="Hausdorff", method="Fortran")
as.breakpts(...)
## S3 method for class 'hyperframe':
as.data.frame(x, row.names = NULL,
                                  optional = FALSE, ..., 
                                  discard=TRUE, warn=TRUE)
as.fv(x)
## S3 method for class 'hyperframe':
as.list(x, ...)
as.listof(x)
as.units(s)
beachcolours(heightrange, sealevel, monochrome, ncolours)
bermantestEngine(model, covariate, which, alternative, ..., modelname, covname, dataname)
bdrylength.xypolygon(polly)
bdry.mask(W)
bind.fv(x, y, labl, desc, preferred)
blankcoefnames(x)
breakpts(val, maxi, even = FALSE, npos = NULL, step = NULL)
breakpts.from.r(r)
bt.frame(Q, trend=~1, interaction=NULL, ..., covariates=NULL,
         correction="border", rbord=0, use.gam=FALSE, allcovar=FALSE)
cartesian(pp, markset, fac = TRUE)
cbind.hyperframe(...)
cellmiddles(W, nx, ny, npix, gi)
checkfields(X,L)          
check.hist.lengths(hist,breaks)
check.named.list(x, nam, context, namopt)
check.named.vector(x, nam, context, namopt)
check.named.thing(x, nam, namopt, xtitle, valid, type, context, fatal)
check.nvector(v, npoints, fatal=TRUE)
check.nmatrix(m, npoints, fatal=TRUE)
check.testfun(f, f1, X)
clip.psp(x, window, check=TRUE)
cliprect.psp(x, window)
clippoly.psp(s, window)
closepairs(X,rmax)
crosspairs(X,Y,rmax)
cobble.xy(x, y, f, fatal)
commasep(x)
compatible.units(x, y, coerce=TRUE)
conform.imagelist(X, Zlist)
countingweights(id, areas, check = TRUE)
damaged.ppm(object)
default.expand(object, m, epsilon)
default.clipwindow(object, epsilon)
default.n.tiling(X, nd, ntile, npix, verbose)
default.ntile(X)
diagnose.ppm.engine(object, ..., type="eem", typename, opt,
                         sigma=NULL, rbord = reach(object), compute.sd=TRUE,
                         compute.cts=TRUE, rv=NULL, oldstyle=FALSE)
digital.volume(range, nval, vside)
dilate.owin(...)
## S3 method for class 'fasp':
dim(x)
## S3 method for class 'hyperframe':
dim(x)
## S3 method for class 'fasp':
dimnames(x)
## S3 method for class 'fasp':
dimnames(x) <- value
distpl(p, l)               
distppl(p, l)
distppll(p, l, mintype=0, method="Fortran", listit=FALSE)
distppllmin(p, l)
divisors(n)
do.call.matched(fname, arglist, funargs, extrargs)
do.iplot(panel)
do.istat(panel)
edge.Ripley(X, r, W, method)
edge.Trans(X, Y, W, exact, paired, trim)
emptywindow(w)
ensure2vector(x)
equals.quad(Q)          
equalsfun.quad(Q)          
eratosthenes(nmax)
erodemask(w,r,strict)
erode.owin(...)
even.breaks.owin(w)
evenly.spaced(x, tol)
exactdt(X, ...)              
exactPdt(w)
## S3 method for class 'ppm':
extractAIC(fit, scale, k, \dots)
f3engine(x, y, z, box, vside, range, nval, correction)
f3Cengine(x, y, z, box, vside, rmax, nrval)
fasp(fns, which, formulae, dataname, title, rowNames, colNames)
findmarktype(x)
fii(interaction, coefs, Vnames)
fillNA(x, value)
FormatFaspFormulae(f, argname)
## S3 method for class 'ppm':
formula(x, \dots)
## S3 method for class 'kppm':
formula(x, \dots)
fv(x, argu, ylab, valu, fmla, alim, labl, desc, unitname, fname, yexp)
fvnames(X, a)
g3engine(x, y, z, box, rmax, nrval, correction)
g3Cengine(x, y, z, box, rmax, nrval)
greatest.common.divisor(n,m)
getfields(X, L, fatal = TRUE)
getglmdata(object, drop=FALSE)
getglmfit(object)
getglmsubset(object)
gridindex(x, y, xrange, yrange, nx, ny)            
grid1index(x, xrange, nx)
grow.rectangle(W, xmargin=0, ymargin=xmargin)
handle.r.b.args(r = NULL, breaks = NULL, window, eps = NULL, rmaxdefault)
handle.rshift.args(W, ..., radius, width, height, edge, clip, edgedefault)
ho.engine(model, ..., nsim, nrmh, start, control, verb)
identical.formulae(x,y)
idorempty(w, r, caller)
implemented.for.K(correction, windowtype, explicit)
inpoint(W)
inside.xypolygon(pts, polly, test01 = TRUE, method="Fortran")
intersect.ranges(a,b,fatal)
intX.owin(w)
intX.xypolygon(polly)
intY.owin(w)
intY.xypolygon(polly)
is.cadlag(s)
is.data(Q)
is.fv(x)
is.hole.xypolygon(polly)
is.hyperframe(x)
is.infline(x)
is.interact(x)
## S3 method for class 'default':
is.marked(\dots)  
## S3 method for class 'psp':
is.marked(X, \dots)
## S3 method for class 'quad':
is.marked(X, na.action="warn", \dots)
## S3 method for class 'default':
is.multitype(\dots)  
## S3 method for class 'quad':
is.multitype(X, na.action="warn", \dots)
is.poisson.interact(x)
is.poisson.ppm(x)
is.prime(n)
is.psp(x)
is.stationary.ppm(x)    
is.tess(x)
k3engine(x, y, z, box, rmax, nrval, correction)
kstestEngine(model, covariate, ..., jitter, modelname, covname, dataname)
Kborder.engine(X, rmax, nr, correction, weights)
Kount(dIJ, bI, b, breaks)
Kwtsum(dIJ, bI, wIJ, b, w, breaks)
Kmulti.inhom(X, I, J, lambdaI=NULL, lambdaJ=NULL, ...,
         r=NULL, breaks=NULL,
         correction = c("border", "isotropic", "Ripley", "translate") ,
         lambdaIJ=NULL, sigma=NULL, varcov=NULL, 
         Iname = "points satisfying condition I",
         Jname = "points satisfying condition J")
killinteraction(model)
least.common.multiple(n,m)
## S3 method for class 'im':
levels(x) <- value
listof(...)
lookup.im(Z, x, y, naok, strict)
majorminorversion(v)
make.even.breaks(bmax, npos, bstep)
makeunits(sing, plur, mul)
markformat(x)
## S3 method for class 'ppp':
markformat(x)
## S3 method for class 'psp':
markformat(x)
mark.scale.default(marx, w, markscale=NULL, maxsize=NULL)
markspace.integral(X)
marks(x, ...)
## S3 method for class 'ppp':
marks(x, \dots, dfok)           
## S3 method for class 'psp':
marks(x, \dots, dfok)
## S3 method for class 'quad':
marks(x, dfok=FALSE, \dots)
marks(x, ...) <- value
## S3 method for class 'ppp':
marks(x, dfok, \dots) <- value
## S3 method for class 'psp':
marks(x, \dots) <- value
markappendop(x, y)
marksubset(x, index, format)
marksubsetop(x, i)
markreplicateop(x, n)
matcolall(x)
matcolany(x)
matcolsum(x)            
matrixsample(mat, newdim, phase)
matrowall(x)
matrowany(x)
matrowsum(x)
maxflow(costm)
meanX.owin(w)            
meanY.owin(w)
sewpcf(d, w, denargs, lambda2area)
sewsmod(d, ff, wt, Ef, rvals, method="smrep", ..., nwtsteps=500)
model.se.image(fit, W, ..., what)
mpl.engine(Q, trend, interaction, ..., covariates, correction,
	 rbord, use.gam, gcontrol, famille,
         forcefit, allcovar, callstring, precomputed, savecomputed, preponly)
mpl.get.covariates(covariates, locations, type)
mpl.prepare(Q, X, P, trend, interaction, covariates, 
            want.trend, want.inter, correction, rbord, Pname,
            callstring, ..., allcovar, precomputed, savecomputed,
            vnamebase, vnameprefix)
MultiPair.checkmatrix(mat, n, matname, naok, zerook)
na.handle.im(X, na.replace)
## S3 method for class 'hyperframe':
names(x)
## S3 method for class 'hyperframe':
names(x) <- value
nearest.pixel(x, y, im)
nearest.valid.pixel(x, y, im)
newstyle.coeff.handling(object)no.trend.ppm(x)
n.quad(Q)
numalign(i, nmax, zero)
ordinal(k)
outdated.interact(object)
overlap.owin(A,B)
overlap.trapezium(xa, ya, xb, yb, verb = FALSE)
overlap.xypolygon(P, Q)
owinpolycheck(W, verbose=TRUE)
owinpoly2mask(w, rasta, check=TRUE)
param.quad(Q)
paren(x)
partialModelMatrix(X,D,model,callstring,...)
pcfmulti.inhom(X, I, J, lambdaI = NULL, lambdaJ = NULL, ...,
               r = NULL, breaks = NULL,
               kernel = "epanechnikov", bw = NULL, stoyan = 0.15,
               correction = c("translate", "Ripley"),
               sigma = NULL, varcov = NULL,
               Iname = "points satisfying condition I",
               Jname = "points satisfying condition J")
pickoption(what="option", key, keymap, ...,
           exact=FALSE, list.on.err=TRUE, die=TRUE, multi=FALSE)
ploterodewin(W1, W2, col.edge, col.inside, ...)
ploterodeimage(W, Z, ..., Wcol, rangeZ, colsZ)
## S3 method for class 'barplotdata':
plot(x, \dots)
## S3 method for class 'distfun':
plot(x, \dots)
## S3 method for class 'fii':
plot(x, \dots)
## S3 method for class 'minconfit':
plot(x, \dots)
## S3 method for class 'pppmatching':
plot(x, addmatch = NULL, main = NULL, \dots)
## S3 method for class 'profilepl':
plot(x, \dots, add=FALSE, main=NULL, tag=TRUE, coeff=NULL, xvariable=NULL)
## S3 method for class 'qqppm':
plot(x, \dots, limits=TRUE, monochrome=FALSE,
           limcol=if(monochrome) "black" else "red")
## S3 method for class 'quadratcount':
plot(x, \dots, add, entries, dx, dy)
## S3 method for class 'quadrattest':
plot(x, \dots)
polynom(x, ...)
ppllengine(X, Y, action="project", check=FALSE)
pppdist.mat(X, Y, cutoff = 1, q = 1, matching = TRUE, precision = 9, approximation = 10)
pppdist.prohorov(X, Y, n, dfix, type, cutoff = 1, matching = TRUE, ccode = TRUE, precision = 9, approximation = 10) 
primefactors(n, prmax)
## S3 method for class 'bt.frame':
print(x, \dots)
## S3 method for class 'colourmap':
print(x, \dots)
## S3 method for class 'diagppm':
print(x, \dots)
## S3 method for class 'distfun':
print(x, \dots)
## S3 method for class 'envelope':
print(x, \dots)
## S3 method for class 'fasp':
print(x, \dots)
## S3 method for class 'fii':
print(x, \dots)
## S3 method for class 'fv':
print(x, \dots)
## S3 method for class 'hyperframe':
print(x, ...)
## S3 method for class 'interact':
print(x, \dots, family=TRUE, brief=FALSE)       
## S3 method for class 'isf':
print(x, \dots)
## S3 method for class 'kppm':
print(x, \dots)
## S3 method for class 'lut':
print(x, \dots)
## S3 method for class 'minconfit':
print(x, \dots)
## S3 method for class 'plotppm':
print(x, \dots)
## S3 method for class 'pppmatching':
print(x, \dots)
## S3 method for class 'profilepl':
print(x, \dots)
## S3 method for class 'qqppm':
print(x, \dots)
## S3 method for class 'rmhcontrol':
print(x, \dots)
## S3 method for class 'rmhmodel':
print(x, \dots)
## S3 method for class 'rmhstart':
print(x, \dots)
## S3 method for class 'splitppp':
print(x, \dots)
## S3 method for class 'summary.fii':
print(x, \dots)
## S3 method for class 'summary.hyperframe':
print(x, ...)
## S3 method for class 'summary.listof':
print(x, \dots)
## S3 method for class 'summary.owin':
print(x, \dots)
## S3 method for class 'summary.ppp':
print(x, \dots, dp=3)
## S3 method for class 'summary.psp':
print(x, \dots)
## S3 method for class 'summary.splitppp':
print(x, \dots)
## S3 method for class 'summary.units':
print(x, \dots)
## S3 method for class 'tess':
print(x, \dots)
## S3 method for class 'units':
print(x, \dots)
prolongseq(x, newrange)
quad(data, dummy, w, param)
rectquadrat.breaks(xr, yr, nx = 5, ny = nx, xbreaks = NULL, ybreaks = NULL)
rectquadrat.countEngine(x, y, xbreaks, ybreaks, weights)
quadrat.testEngine(X, nx, ny, ..., xbreaks, ybreaks, tess=NULL, fit=NULL, Xname=NULL, fitname=NULL)
quadscheme.replicated(data, dummy, method = "grid", ...)
quadscheme.spatial(data, dummy, method = "grid", ...)
pointgrid(W, ngrid)
rasterx.im(x)
rastery.im(x)
## S3 method for class 'fii':
reach(x, \dots, epsilon)
rebadge.fv(x, new.ylab, new.fname, tags, new.desc, new.labl, new.yexp,
new.dotnames, new.preferred, new.formula)
rebound.im(x, rect)
rebound.ppp(x, ...)
rebound.psp(x, ...)
rebound.owin(w, rect)
reincarnate.interact(object)
## S3 method for class 'units':
rescale(X,s)
resid4plot(RES, plot.neg="image", plot.smooth="imagecontour",
           spacing=0.1, srange=NULL,monochrome=FALSE, main=NULL, ...)
resid1plot(RES, opt, plot.neg="image", plot.smooth="imagecontour",
              srange=NULL, monochrome=FALSE, main=NULL, ...)
resid1panel(observedX, observedV,
            theoreticalX, theoreticalV, theoreticalSD, xlab,ylab, ...)
resolve.defaults(..., .StripNull=FALSE)
restrict.mask(M, W)
reverse.xypolygon(p, adjust=FALSE)
revcumsum(x)
rmax.rule(fun, W, lambda)
rotxy(X, angle = pi/2)
rotxypolygon(p, angle = pi/2)
rmhResolveTypes(model, start, control)
## S3 method for class 'rmhcontrol':
rmhcontrol(\dots)
## S3 method for class 'list':
rmhcontrol(\dots)
rmhEngine(InfoList, ..., verbose, kitchensink, preponly) 
## S3 method for class 'rmhmodel':
rmhmodel(model, \dots)
## S3 method for class 'rmhstart':
rmhstart(start, \dots)
## S3 method for class 'list':
rmhstart(start, \dots)
rmpoint.I.allim(n, f, types)
## S3 method for class 'hyperframe':
row.names(x)
## S3 method for class 'hyperframe':
row.names(x) <- value
rpoint.multi(n, f, fmax=NULL, marks = NULL, win = unit.square(), giveup = 1000, verbose = FALSE)
runifpoispp(lambda, win = owin(c(0, 1), c(0, 1)))
runifpoisppOnLines(lambda, L)
runifrect(n, win = owin(c(0, 1), c(0, 1)))
safelookup(Z, X, factor, warn)
second.moment.calc(x, sigma=NULL, edge=TRUE, what="Kmeasure", debug=FALSE,
..., varcov=NULL, expand=FALSE)
second.moment.engine(x, sigma=NULL, edge=TRUE, what="Kmeasure", debug=FALSE,
..., obswin=as.owin(x), varcov=NULL, npoints=NULL)
shiftxy(X, vec = c(0, 0))
shiftxypolygon(p, vec = c(0, 0))
simplify.xypolygon(p, dmin)
spatstat.rawdata.location(...)
sphere.volume(range, nval = 10)
sp.foundclass(cname, inlist, formalname, argsgiven)             
sp.foundclasses(cnames, inlist, formalname, argsgiven)             
stratrand(window, nx, ny, k = 1)
suffloc(object)
suffstat.generic(model, X, callstring)
suffstat.poisson(model, X, callstring)
## S3 method for class 'envelope':
summary(object,\dots)
## S3 method for class 'fii':
summary(object,\dots)
## S3 method for class 'hyperframe':
summary(object, ..., brief=FALSE)
## S3 method for class 'profilepl':
summary(object, \dots)
## S3 method for class 'pppmatching':
summary(object, \dots)
## S3 method for class 'units':
summary(object, \dots)
sympoly(x, y, n)
## S3 method for class 'ppm':
terms(x, \dots)
## S3 method for class 'kppm':
terms(x, \dots)
termsinformula(x)
test.crossing.psp(A,B)
test.selfcrossing.psp(A)
tilecentroids(W, nx, ny)
tilenames(x)
trim.mask(M, R, tolerant)
tweak.fv.entry(x, current.tag, new.labl=NULL, new.desc=NULL, new.tag=NULL)
## S3 method for class 'default':
unitname(x)
## S3 method for class 'default':
unitname(x) <- value
## S3 method for class 'interact':
update(object, \dots)
validradius(r, caller)
valid.ppm(object, na.value)
validate.mask(w, fatal=TRUE)        
validate.quad(Q, fatal, repair, announce)
validposint(n, caller, fatal)
variablesinformula(x)
versionstring.interact(object)
versionstring.ppm(object)
versionstring.spatstat()
verifyclass(X, C, N = deparse(substitute(X)), fatal = TRUE)
verify.xypolygon(p, fatal=TRUE)
w.quad(Q)               
x.quad(Q)
y.quad(Q)
xypolyselfint(p, eps, proper, yesorno, checkinternal)
xypolygon2psp(p, w)

Arguments

Details

These are usually not to be called by the user.