n |
Integer.
|
world |
WorldMatrix or worldArray object.
|
torus |
Logical to determine if the world is wrapped. Default is
torus = FALSE .
|
minPxcor |
Integer. Minimum pxcor for the patches (world 's left border).
|
maxPxcor |
Integer. Maximum pxcor for the patches (world 's right border).
|
minPycor |
Integer. Minimum pycor for the patches (world 's bottom border).
|
maxPycor |
Integer. Maximum pycor for the patches (world 's top border).
|
pxcor |
Integer. Vector of patches pxcor coordinates. Must be of length 1
or of the same length as pycor .
|
pycor |
Integer. Vector of patches pycor coordinates. Must be of length 1
or of the same length as pxcor .
|
cellNum |
Integer. Vector of cells number.
|
pVar |
Character. If the world is a worldArray object, pVar
is the name of the layer to use to define the patches values.
pVar must not be provided if the world is a worldMatrix object.
|
turtles |
AgentMatrix object representing the moving agents .
|
patches |
Matrix (ncol = 2) with the first column pxcor and the second
column pycor representing the patches coordinates.
|
agents |
Matrix (ncol = 2) with the first column pxcor and the second
column pycor representing the patches coordinates, or
`AgentMatrix` object representing the moving `agents`.
|
agents2 |
Matrix (ncol = 2) with the first column pxcor and the second
column pycor representing the patches coordinates, or
`AgentMatrix` object representing the moving `agents`, or
Matrix (`ncol` = 2) with the first column `x` and the second column
`y` representing locations coordinates.
|
nNeighbors |
Integer: 4 or 8. Represents the number of neighbor patches
considered.
|
dx |
Numeric. Vector of distances to the east (right) from the agents .
If dx is negative, the distance to the west (left) is computed.
dx must be of length 1 or of the same length as number of patches
or turtles in agents .
|
dy |
Numeric. Vector of distances to the north (up) from the agents .
If dy is negative, the distance to the south is computed (down).
dy must be of length 1 or of the same length as number of patches
or turtles in agents .
|
color |
Character. Vector of color names. Must be of length n .
If missing, colors are assigned using the function rainbow(n) .
|
who |
Integer. Vector of the who numbers for the selected turtles .
|
breed |
Characters. Vector of breed names for the selected turtles .
If missing, there is no distinction based upon breed .
|
var |
Character. The name of the selected agents variable.
If agents are patches and the world is a
worldMatrix object, var must not be provided. If
agents are patches and the world is a worldArray
object, var is the name of the layer to use to define the patches
values. If agents are turtles , var is one of
the turtles ' variable and can be equal to xcor ,
ycor , any of the variables created when turtles were created,
as well as any variable created using turtlesOwn() .
|
val |
Numeric or character. Vector of any length.
|