- Nicholas Carey
attackR - New R Package
I've just released a new R package - attackR, which contains the code we used in our recent PNAS study in which we examined how humpback whales are able to sneak up on easily-scattered anchovies, a counter-intuitive finding related to their large size and approach speeds.
However, it can be used in all sorts of predator-prey interactions. Given shape, speed and size, the package can determine how any predator appears to a prey in their visual field, and allow identification of visual response thresholds.
It's available here and I'll be updating it soon so you can create animations from the output models using my other package loomeR.