Learn R Programming

geophys (version 1.4-1)

randFRY: Random data for Fry analysis

Description

Random distribution of points that have a specified radial spacing.

Usage

randFRY(N = 200, LIM = c(0, 0, 100, 100), rlen = 5, PLOT=FALSE)

Arguments

N

integer, number of points

LIM

Limit in x-y direction

rlen

distance length. points are selected if they are greater than this distance from each other.

PLOT

logical, TRUE=make a plot of data

Value

x

x-coordinate

y

y-coordinate

Details

A spatial data set is generated that has random distribution with points no closer than a specified distance apart.

References

Fry, N., (1979) <http://dx.doi.org/10.1016/0040-1951(79)90135-5> Random point distributions and strain measurement in rocks Tectonophysics, 60:89-105.

See Also

dofry

Examples

Run this code
# NOT RUN {
RDAT = randFRY(100, LIM=c(0,0, 100, 100) , rlen=5   )
length(RDAT$x)
plot(RDAT$x, RDAT$y, asp=1, pch=".", cex=2)


# }

Run the code above in your browser using DataLab