An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20100423/617faa47/attachment.pl>
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:
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
Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770
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