Create a scene with entities on a grid
scene_grid( seed = use_seed(1), xpos = 1:3, ypos = 1:3, entity = "circle", grain = 50, size = 1, shape = 3, angle = 0 )
seed | Seed number to attach |
---|---|
xpos | Numeric vector specifying horizontal locations |
ypos | Numeric vector specifying vertical locations |
entity | The entity type (e.g., "line", "circle") |
grain | The number of points per entity |
size | The size of each entity |
shape | The shape of each entity |
angle | The angle of each entity |
A tibble with four columns: x, y, id and type
The scene_grid()
function allows multiple entities to be
included in the initial object, laying out items in grid.