Lightning density map
On 02/25/2013 11:00 PM, Adrian Antonescu wrote:
Hi, Two weeks ago I have asked a question regarding the use of R for plotting lightning density maps. Thanks to you answers I was able to go one step further. Attached is the .R script and a sample of the data. The script is counting the number of lightning strikes in hexagons, and then is plotting the hexagons over Europe. To obtain the lightning density I need the area of the hexagons. Could you please help me on how to calculate the area of the hexagons? Also, how can I obtain the number of days with lightning in each hexagons?
> unique(sapply(HexPolsDf at polygons, function(x) x at area)) [1] 6393744806 6393744806 6393744806 6393744806 I believe the number of days query was mentioned earlier on this list, Today -- you've ignore time so far, right?
Thank you very much. Cheers, Bogdan
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Edzer Pebesma Institute for Geoinformatics (ifgi), University of M?nster Weseler Stra?e 253, 48151 M?nster, Germany. Phone: +49 251 8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de http://www.52north.org/geostatistics e.pebesma at wwu.de