Description
Hexplots can be a handy way to look at the spatial distribution of a lot of data all at once. I've had a couple projects using hexplots to show telemetry data and had been thinking about cleaning up some of the code and releasing it to possibly give other other people a hand. Luckily, it turned out the good people paying me also thought this would be a good idea.
So here's a bunch of R code that reads in data from the Douglas filter (or skip the reading in and just use anything else that has a lat, lon, animal ID and date) and makes pretty maps of hexes out of it using Generic Mapping Tools (GMT). There's just two main functions to get you started making your own maps. Just as a warning, you'll want to be somewhat proficient in R to make much use of this (it's a pretty easy language though).
Requirements
You'll need R and GMT installed. Although it's only been tested in Unix, I think it should work on Windows and any machine where R can call the system (and can run GMT).
Instructions
I included an example program and example data in the zip file. You should be able to run the program (e.g. source('exampleHexMap.R')) and see sample output produced. All the function parameters and outputs are documented in the source functions.R file. The main functions are hexPlot and readDouglas. A few other project specific functions (and the base functions) are also provided for reference or expansion.
Current Version
Change Log
- v0.1 2008-04-04
- First Public Version
Comment, Bugs, Suggestions?
I guess this should go under some sort of license (although it's really nothing special) so let's call it BSD. Please leave any comments, bugs, suggestions here (also if you need a hand with anything). I hope you find this helpful.