Learn R Programming

geoCount (version 1.150120)

unifLoc: Scale Locations into A Unit Square

Description

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

Usage

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.

See Also

locCircle, locGrid, locSquad.

Examples

Run this code
## Not run: 
#   loc <- locGrid(1, 2, 10, 5)
#   plot(unifLoc(loc, length=1))
# ## End(Not run)

Run the code above in your browser using DataLab