locGrid: Simulate Locations on Grid

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function simulates a given number of locations distributed on a grid.

Usage

1
locGrid(x, y, nx, ny)

Arguments

x

the length of x edge

y

the length of y edge

nx

the number of locations in x direction

ny

the number of locations in y direction

Details

The grid lies in the range of (0, x) \times (0, y).

Value

A (nx\times ny) \times 2 matrix indicates the x-y coordinates of the locations.

Author(s)

Liang Jing ljing918@gmail.com

See Also

locCircle, locSquad, simData, plotData.

Examples

1
2
3
4
5
## Not run: 
  loc <- locGrid(1, 2, 10, 5)
  plot(loc, xlab="x", ylab="y")

## End(Not run)


Search within the geoCount package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.