unifLoc: Scale Locations into A Unit Square

Description Usage Arguments Value Author(s) See Also Examples

Description

This function scales the coordinates of original locations to fit into a unit square.

Usage

1
unifLoc(loc, length=1)

Arguments

loc

a matrix of n \times 2 which indicates the x-y coordinates of the original locations

length

the edge length of the square

Value

A matrix of n \times 2 which indicates the x-y coordinates of scaled locations.

Author(s)

Liang Jing ljing918@gmail.com

See Also

locCircle, locGrid, locSquad.

Examples

1
2
3
4
5
## Not run: 
  loc <- locGrid(1, 2, 10, 5)
  plot(unifLoc(loc, length=1))

## End(Not run)

geoCount documentation built on May 2, 2019, 12:38 a.m.

Related to unifLoc in geoCount...