Create a scene with entities placed randomly
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) )
| 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 |
A tibble with four columns: x, y, id and type