Description Usage Arguments Value
This function overlays a grid on the track generated by the trackPath
function and counts the number of cells crossed by the animal. It is useful for returning count and proportional data abount an animal's path.
1 | countCells(path.list, xgrid, ygrid)
|
path.list |
a list object created by the |
xgrid |
an integer specifying the number of grid cells the arena should be divided into along its width |
ygrid |
an integer specifying the number of grid cells the arena should be divided into along its height |
If assigned to an object, a list containing the number of cells crossed and the proportion of total cells crossed; if not assigned to an object, a message in the console is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.