random.circle | R Documentation |
Creates coordinates for a random circle
random.circle(n, distribution, inner = 0, outer = Inf, ...)
n |
The number of pairs x,y of coordinates. |
distribution |
The distribution from which the coordinates are sampled. |
inner |
Optional, the radius for an empty inner circle. |
outer |
Optional, the maximum radius for the circle. |
... |
Any additional argument to be passed to |
Thomas Guillerme
space.maker
## A simple uniform circle
plot(random.circle(1000, runif), pch = 20)
## A normal ring with inner and outer boundaries
plot(random.circle(1000, rnorm, inner = 0.5, outer = 5), pch = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.