Learn R Programming

geostats (version 1.6)

randy: 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)

Value

a [2xn] matrix of random numbers

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

Examples

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

Run the code above in your browser using DataLab