[R-sig-Geo] areal data to pixel image

Tomislav Hengl hengl at spatial-analyst.net
Sat Apr 24 08:30:19 CEST 2010


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:
> Hi,
> I am trying to make a smooth representation of US population data (ie in an
> pixel image in spatstat) using county level population data.  Does someone
> know of a good way to do this.
> (I am a beginner, so I apologize if this is an obvious question).
> Thanks,
> Ted Rosenbaum
> 
> --------------------------
> Graduate Student
> Department of Economics
> Yale University
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list