I have a dataset consisting of latitude-longitude pairs associated with some Z value (e.g. data regarding degree of plant vegetation coverage).
I'd like to perform some analyses on the spatial distribution of this data.
To do so, it will be necessary to bin proximal data points.
I would like to do this with a Discrete Global Grid such as an Icosahedron Snyder Equal Area (ISEA) grid, or the grid produced by DGGRID.
The key is that the latitude-longitude values of the data can be convertable into unique cell ids, that the latitude-longitude of the cell's center be determinable, the size of the cells be variable (for analysis at different spatial scales), and that the cells be of equal area to a close approximation.
An image depicting how this might look:
Is there anything in R which does this?
There is only one other lead I ever turned up for hexagonal gridding over a curved surface: some untested/beta functions for the hexbin package:
http://ugrad.stat.ubc.ca/R/library/hexbin/html/00Index.html
I've just completed an R package called dggridR which wraps dggrid in an easy-to-use way.
The package is also available on CRAN.
Why not use DGGRID itself, which can do everything you asked? For example, you could use DGGRID to transform a text file of lat/lon/datavalue records into records of the form cellID/datavalue, and then import those into R.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With