Description Usage Arguments Examples
View source: R/procedural_ring.R
Generates data from a contrived algorithm in which a point continuously moves around the circumference of a circle and offsets randomly from the circle boundary based on user-set parameters such as eps.
1 2 3 4 5 6 7 8 9 10 11 | procedural_ring(
seed = 3,
n = 400,
n_circles = 4,
r_0 = 5000,
eps = 500,
eps_big = 5000,
p_defect = 0.1,
delta = 2.02,
wildflower = FALSE
)
|
seed |
The seed number |
n |
The number of steps to make around the circumference of the circle |
n_circles |
The number of times to repeat the algorithm (results are overlaid and interpolated) |
r_0 |
The radius of the circle |
eps |
The base amount to offset from the circumference of the circle |
eps_big |
If there is a 'defect', the point jumps to this large radius + eps + noise |
p_defect |
The probability of a defect (an unusualy high offset) |
delta |
The angle (in degrees) between successive radial movements around the circumference (+/-1 deg is added) |
wildflower |
If TRUE, r is always updated in the positive radial direction |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.