Methods for weighted, marked planar point patterns (of class wmppp) from spatstat
generic.spatstat.Rd
spatstat methods for a ppp.object
applied to a wmppp.object
.
Arguments
- X, x
A two-dimensional point pattern. An object of class "wmppp".
- ...
Arguments passed to the
ppp.object
method.- i
Subset index. Either a valid subset index in the usual R sense, indicating which points should be retained, or a window (an object of class "owin") delineating a subset of the original observation window, or a pixel image with logical values defining a subset of the original observation window.
- j
Redundant. Included for backward compatibility.
- drop
Logical value indicating whether to remove unused levels of the marks, if the marks are a factor.
- clip
Logical value indicating how to form the window of the resulting point pattern, when
i
is a window. Ifclip=FALSE
(the default), the result has window equal toi
. Ifclip=TRUE
, the resulting window is the intersection between the window ofx
and the windowi
.
Details
spatstat methods for ppp
objects returning a ppp
object can be applied to a wmppp
and return a wpppp
with these methods which just call the ppp.object
method and change the class of the result for convenience.
Some spatstat functions such as rthin
are not generic so they always return a ppp.object
when applied to a wmppp.object
. Their result may be converted by as.wmppp
.