scene_mix: Create a scene with entities placed randomly

Description Usage Arguments Value

View source: R/scene_gridmix.R

Description

Create a scene with entities placed randomly

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
scene_mix(
  seed = use_seed(1),
  n = 5,
  xpos = (1:20)/4,
  ypos = (1:20)/4,
  entity = c("circle", "line", "heart", "droplet"),
  grain = 100,
  size = (10:20)/20,
  shape = 3,
  angle = seq(0, 2 * pi, length.out = 20)
)

Arguments

seed

Seed number to attach

n

Number of entities

xpos

Numeric vector specifying possible horizontal locations

ypos

Numeric vector specifying possible vertical locations

entity

Character vector specifying possible entity types (e.g., "line", "circle")

grain

Numeric vector specifying possible grains

size

Numeric vector specifying possible sizes

shape

Numeric vector specifying possible shapes

angle

Numeric vector specifying possible angles

Value

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


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