Get coordinates adjacent to a point
Arguments
- yy
The target y coordinate
- xx
The target x coordinate
- nrow
The maximum row value. Not needed if
data
is provided.- ncol
The maximum column value. Not needed if
data
is provided.- data
A matrix used to determine
nrow
andncol
if provided.- yCount
The number of rows to include on either side of the target
- xCount
The number of columns to include on either side of the target