random.circle: Random circle

View source: R/space.maker.R

random.circleR Documentation

Random circle

Description

Creates coordinates for a random circle

Usage

random.circle(n, distribution, inner = 0, outer = Inf, ...)

Arguments

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 distribution.

Author(s)

Thomas Guillerme

See Also

space.maker

Examples

## 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)


TGuillerme/dispRity documentation built on Dec. 21, 2024, 4:05 a.m.