scene_grid: Create a scene with entities on a grid

Description Usage Arguments Details Value

View source: R/scene_gridmix.R

Description

Create a scene with entities on a grid

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
scene_grid(
  seed = use_seed(1),
  xpos = 1:3,
  ypos = 1:3,
  entity = "circle",
  grain = 50,
  size = 1,
  shape = 3,
  angle = 0
)

Arguments

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

Details

The scene_grid() function allows multiple entities to be included in the initial object, laying out items in grid.

Value

A tibble with four columns: x, y, id and type


djnavarro/jasmines documentation built on April 12, 2021, 4:25 a.m.