Community Matrix Model Class
Community Matrix Model Class
A community_model whose pattern is a regular, rectangular grid of points.
SimComm::community_model
-> community_matrixmodel
neighborhood
A character string defining what is the neighborhood of a cell: "von Neumann 1" or "4" for the closest four neighbors (North, West, South, East); "Moore 1" or "8" for all adjacent cells (the first four and North-West, etc.); "Moore 2" or "24" for two rings of neighbors.
new()
Create a new instance of this R6 class.
community_matrixmodel$new(
pattern = pattern_matrix_individuals(),
timeline = 0,
type = "Species",
neighborhood = "von Neumann 1"
)
pattern
The pattern which describes the location of agents.
pattern
The pattern which describes the location of agents.
timeline
A numeric vector that contains the points of time of interest.
type
The type of individuals. Informational only.
neighborhood
A character string defining what is the neighborhood of a cell: "von Neumann 1" or "4" for the closest four neighbors (North, West, South, East); "Moore 1" or "8" for all adjacent cells (the first four and North-West, etc.); "Moore 2" or "24" for two rings of neighbors.
plot()
Plots the pattern.
autoplot()
Produces a ggplot of the pattern.