Learn R Programming

ecespa (version 1.1-1)

haz.ppp: 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)

Value

  • A point pattern with the format of spatstat v. < 2.0

Details

This naive function easily transform your xy data to the format required by spatstat (version

See Also

ppp, as.ppp

Examples

Run this code
data(fig1)

plot(fig1) #typical xyplot

fig1.ppp <- haz.ppp (fig1)

fig1.ppp

plot(fig1.ppp) # point pattern plot of spatstat

Run the code above in your browser using DataLab