kaitlyngaynor / gorongosa-shiny

Code for Gorongosa Camera Trap Shiny App
https://kaitlyngaynor.shinyapps.io/gorongosa-shiny/
Apache License 2.0
2 stars 0 forks source link

Data presented in map is incorrect #14

Closed kaitlyngaynor closed 4 years ago

kaitlyngaynor commented 4 years ago

https://github.com/kaitlyngaynor/gorongosa-camera-traps/blob/351e770ef5b3a38b32ecc6568d51c9fd046b1050/shiny-rai/server.R#L63

In the hex map, four of the cameras have consistently high RAI for many species F03, G08, I06, J11. But this isn’t the case in the table, so it doesn’t seem that the table values are being accurately represented in the map. So, something is up with the merging of the hexagons and the data frame.

kaitlyngaynor commented 4 years ago

Fixed issue with some further modifications of code (initially Matt's LOD hex code). May have just been a matter of specifying region = "Camera" when using broom to tidy the hexes. hexes.df <- broom::tidy(hexes, region = "Camera")