r - How is eps used in density.ppp()? -


i'm using density.ppp() intensity function series of coordinates. data projected , in units of meters. i'm trying estimate number of points/km, after looking @ documentation used eps = 1000 set resolution of outputted image 1km2.

but eps refer values estimated? or units of area intensity function estimate in?

do still need rescale values 1000x1000 km2?

the argument eps can in general 2 dimensional vector giving pixel size in x , y coordinates. if give 1 value (which perhaps common usage) size used in both directions. thus, usage should give image 1000 m 1000 m pixels intensity values. intensity per unit area in case means intensity values expected number of points in 1 m 1 m region. if want rescale entire analysis in km suggest first use rescale.ppp convert km , use eps=1 in density.ppp. if data in ppp object x should do:

y <- rescale(x, 1000, unitname = "km") density(y, eps = 1) 

i don't remember internal functions called density.ppp pass eps as.mask, if need know can investigate further.


Comments