haz.ppp {ecespa} | R Documentation |
Easily convert xy data to ppp format
Description
ppp maker for the impatient layman
Usage
haz.ppp(W)
Arguments
W |
a data frame or matrix with two or three columns (coordinate x, coordinate y, and mark of the point) |
Details
This naive function easily transform your xy data to the format required by spatstat (version <2.0). It establishes the window of observation as the rectangle defined by the xy range. It asumes that the first two columns are coordinates x and y, and the third (if any) gives the marks of the points.
Value
A point pattern with the format of spatstat v. < 2.0
Note
This window is an underestimate of the real sampling window of the observed points. For a less biassed estimate, use function ripras
in spatstat.
Author(s)
Marcelino de la Cruz
See Also
Examples
data(fig1)
plot(fig1) #typical xyplot
fig1.ppp <- haz.ppp (fig1)
fig1.ppp
plot(fig1.ppp) # point pattern plot of spatstat
[Package ecespa version 1.1-17 Index]