bbox | R Documentation |
These are methods for classes in NetLogoR, i.e., agentMatrix
, worldMatrix
,
and worldArray
.
Replacement method sets the bbox attribute of an agentMatrix
.
bbox(obj)
## S4 method for signature 'agentMatrix'
bbox(obj)
## S4 method for signature 'ANY'
bbox(obj)
bbox(obj) <- value
## S4 replacement method for signature 'agentMatrix,matrix'
bbox(obj) <- value
## S4 method for signature 'worldNLR'
bbox(obj)
## S4 method for signature 'SpatExtent'
bbox(obj)
obj |
object deriving from class "agentMatrix",
or for |
value |
2x2 matrix representing the bounding box. See |
The replacement method returns the same object as supplied to
obj, i.e., an agentMatrix
, with the bbox
attribute set to value
.
extent()
, coordinates()
, sp::bbox
newAgent <- agentMatrix(
coords = cbind(pxcor = c(1, 2, 5), pycor = c(3, 4, 6)),
char = letters[c(1, 2, 6)],
nums2 = c(4.5, 2.6, 2343),
char2 = LETTERS[c(4, 24, 3)],
nums = 5:7
)
bbox(newAgent)
extent(newAgent)
coordinates(newAgent)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.