ppx(data, domain=NULL, spatial = NULL, temporal = NULL)
data.frame
or hyperframe
.NULL
.data
that should be interpreted as spatial coordinates.data
that should be interpreted as temporal coordinates."ppx"
."ppx"
represents a marked point pattern
in multidimensional space and/or time. There may be any
number of spatial coordinates, any number of temporal coordinates,
and any number of mark variables. The individual marks may be
atomic (numeric values, factor values, etc) or objects of any kind. The argument data
should contain the coordinates and marks of
the points. It should be a data.frame
or more generally a
hyperframe
(see hyperframe
) with
one row of data for each point.
Each column of data
is either
a spatial coordinate, a temporal coordinate, or a mark variable.
The argument spatial
determines which columns are interpreted
as spatial coordinates: if it is present, spatial
should be a
character vector matching the names of columns of data
.
Similarly the argument temporal
determines which columns
are interpreted as temporal coordinates.
By default, columns of numerical data are assumed to represent
spatial coordinates.
pp3
,
print.ppx
df <- data.frame(x=runif(4),y=runif(4),z=runif(4))
X <- ppx(data=df, t="z")
X
val <- runif(4)
E <- lapply(val, function(s) { rpoispp(s) })
hf <- hyperframe(t=val, e=as.listof(E))
Z <- ppx(data=hf, domain=c(0,1))
Z
Run the code above in your browser using DataLab