Skip to content
Prev 28289 / 29559 Next

How set up spatstat::densityHeat()?

On 14/07/20 1:39 am, Michal Kvasni?ka wrote:

            
Dear Michal,

I am replying on behalf of the spatstat authors (and not claiming any 
personal competence in the area of point processes on networks).

My co-authors suggest that you:

    * upgrade to the latest development version of spatstat.  You
      could use

      > remotes::install_github("spatstat/spatstat",lib=.Rlib)

      to do this,

    * look at help(densityHeat), in particular the
      section "Discretisation and Error Messages" which explains
      how the discretisation is performed,

    * use densityfun.lpp instead of density.lpp if you want a
      function rather than a pixel image.

Note that if finespacing=FALSE is selected, the discretisation is 
determined by the default pixel resolution of the window containing the 
network. The arguments eps and dimyx would be passed to as.mask to 
determine pixel resolution in the usual way (their interpretation is 
explained in the help for as.mask()).

Note also that density.lpp() calls densityHeat() which calls the 
internal algorithm. Similarly densityfun.lpp() calls the same internal 
algorithm. Consequently they all handle discretisation arguments the 
same way.

The spatstat authors know nothing about the package DrHotNet and do not 
necessarily endorse whatever they are doing. Definitely *do not* 
'lixellate' (discretise) the network before applying density(), because 
this will screw up the discretisation procedure.

We are very sceptical about the validity of applying clustering to the 
elements of the discretisation.

HTH

cheers,

Rolf Turner