makePoints: Creates a set of random points

Description Usage Arguments Details Value

Description

This is called by rlandscape to generate points. Uses any combination of four methods

Usage

1
makePoints(n = c(100, 0, 0, 0), hAsp = 1, control = list())

Arguments

n

a vector of length up to 4 specifying how many points to create by each method: uniform, lattice, cluster, and inhibition (SSI), respectively.

hAsp

a single positive numeric, the horizontal to vertical aspect ratio of the window to create the points in.

control

a list of parameters. The elements include any or all of the following:

  • lattice, a vector of length 2 containing the number of horizontal and vertical grid lines that lattice points are to be chosen from.

  • cluster, a vector of length 2 specifying the number of points per cluster and the cluster spread (standard deviation of a bivariate Gaussian)

  • ssi, a single numeric, the inhibition distance for the SSI method.

Details

Additional control parameters can be passed to the lattice, cluster and SSI point processes via the control parameter.

Value

Returns coordinates of the points produced in a list of two vectors, x and y.


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