Skip to contents

generate a clutter of cells by growing from the center

Usage

gen_clutter(
  n_cell,
  grid_size = NA,
  center = c(0, 0),
  existing_loc = NULL,
  existing_grid = NULL
)

Arguments

n_cell

the number of cells

grid_size

the width and height of the grid

center

the center of the grid

existing_loc

only place cells on the specified existing locations

existing_grid

manually specify what locations are in the grid

Value

a matrix of locations

Examples

gen_clutter(10, 10, c(5, 5))
#> Error in gen_clutter(10, 10, c(5, 5)): could not find function "gen_clutter"