rLatticePoints: lattice point process

Description Usage Arguments Value

Description

Chooses n random points from a lattice

Usage

1
rLatticePoints(n, seg = rep(ceiling(n[2]^0.5 * 2), 2))

Arguments

n

number of points to choose

seg

vector of 2 integers, the number of horizontal and vertical grid lines, respectively.

Value

List of n x and y coordinates.


gregorp/rlandscape documentation built on May 17, 2019, 8:36 a.m.