dbca-wa / wastdr

An R Client for the WA Sea Turtles and Strandings Database WAStD
https://dbca-wa.github.io/wastdr/
Other
3 stars 0 forks source link

Visualise hatchling fan angles #46

Open florianm opened 3 years ago

florianm commented 3 years ago

Create a new R package leaflet-hatchlings

florianm commented 2 years ago

Leaflet.Circle-sector wrapper created as a new R package: https://dbca-wa.github.io/leaflet.circlesector/ Now we can add wastdr::map_fanangles as:

florianm commented 2 years ago

Should refactor the data prep for fan angles into download wastd turtledata and use pmap for performance on mis_bearing and mean_bearing

florianm commented 2 years ago

Refactor done: expensive rowwise() calculations of misorientation and mean angles are pushed to download_wastd_turtledata. TODO: should write a wrapper for https://github.com/jieter/Leaflet-semicircle/blob/master/Semicircle.js which is available on npm using derivePoints and invokeMethod and see if we can leverage vectorised leaflet::circle().