Learn R Programming

geoCount (version 1.150120)

locSquad: Simulate Squared Locations

Description

This function simulates a given number of locations equally distributed on a square.

Usage

locSquad(a, np)

Arguments

a
half length of the edge
np
the number of locations on each edge

Value

A $(4\times np-4) \times 2$ matrix indicates the x-y coordinates of the locations.

Details

The center of the square is (0, 0).

See Also

locCircle, locGrid, simData, plotData.

Examples

Run this code
## Not run: 
#   plot(locSquad(0.5, 4))
# ## End(Not run)

Run the code above in your browser using DataLab