Skip to content

areal data to pixel image

3 messages · Ted Rosenbaum, Paul Hiemstra, Tomislav Hengl

#
Hi Ted,

Take a look at the polygonsToRaster() function form the raster package. 
In general, the raster package looks like a good package for your type 
of research.

cheers,
Paul
Ted Rosenbaum wrote:

  
    
#
I think you want to use the kernel density funcionality of spatstat 
[http://spatstat.org]; this will allow you to atach population at 
polygon centers as weigths. Here are some examples:

 > library(spatstat)
...
 > wosCR.ppp <- ppp(wosmap at coords[,1], wosmap at coords[,2], 
marks=wosmap$CR, window=wowin)
 > densCR <- density.ppp(wosCR.ppp, 0.5, weights=wosmap$CR, edge=TRUE)
...

[http://spatial-analyst.net/wiki/index.php?title=Mapping_research_hot-spots]

T. Hengl
http://home.medewerker.uva.nl/t.hengl/
Ted Rosenbaum wrote: