Example 2: Home Range Analysis with NetLogo and R
see NetLogo code fragments here
Figure 1. Using R function "mcp" from package "adehabitat" to calculate homeranges from animal movement data generated by a NetLogo model. (A): movement path of three animals; (B): home ranges as determined by the R library "adehabitat" for home range level=95, i.e. 5% of the visited locations have been removed for the home range estimation; (C): area of the estimated home range polygons at different home range levels (the higher the level, the lower the percentage of removed locations farthest away from the barycenter of the homerange; see documentation of "adehabitat" package for details).