| createWorld | R Documentation |
worldCreate a world of patches of class worldMatrix.
createWorld(minPxcor, maxPxcor, minPycor, maxPycor, data = NA)
## S4 method for signature 'numeric,numeric,numeric,numeric,ANY'
createWorld(minPxcor, maxPxcor, minPycor, maxPycor, data = NA)
## S4 method for signature 'missing,missing,missing,missing,missing'
createWorld()
minPxcor |
Integer. Minimum |
maxPxcor |
Integer. Maximum |
minPycor |
Integer. Minimum |
maxPycor |
Integer. Maximum |
data |
Vector of length 1 or length
|
If data is provided, values are assigned by rows.
If no parameters value are provided, default values are:
`minPxcor = -16`,
`maxPxcor = 16`, `minPycor = -16`, and `maxPycor = 16`.
See `help("worldMatrix-class")` for more details on the `worldMatrix` class.
WorldMatrix object composed of
(maxPxcor - minPxcor + 1) * (maxPycor - minPycor + 1)
patches (i.e., matrix cells).
Sarah Bauduin, Eliot McIntire, and Alex Chubaty
Wilensky, U. 1999. NetLogo. https://www.netlogo.org. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.
w1 <- createWorld(minPxcor = 0, maxPxcor = 4, minPycor = 0, maxPycor = 4, data = 1:25)
plot(w1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.