Learn R Programming

geoCount (version 1.150120)

locCircle: Simulate Circlular Locations

Description

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

Usage

locCircle(r, np)

Arguments

r
the radius of the circle
np
the number of locations on the circle

Value

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

Details

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

See Also

locGrid, locSquad, simData, plotData.

Examples

Run this code
## Not run: 
#   loc <- locCircle(1, 40)
# ## End(Not run)

Run the code above in your browser using DataLab