randy: generate bivariate random data

View source: R/toolbox.R

randyR Documentation

generate bivariate random data

Description

Returns bivariate datasets from four synthetic distributions that have the shape of a circle, arrow, square and ellipse.

Usage

randy(pop = 1, n = 250)

Arguments

pop

an integer from 1 to 4 marking the population of choice: 1 = circle, 2 = arrow, 3 = solid square, 4 = ellipse.

n

the number of random draws to be drawn from population pop

Value

a [2xn] matrix of random numbers

Examples

p <- par(mfrow=c(1,4))
for (i in 1:4){
   plot(randy(pop=i))
}
par(p)

geostats documentation built on Jan. 7, 2023, 5:32 p.m.

Related to randy in geostats...