randomCoordinates

0th

Percentile

Random or regularly distributed coordinates on the globe

randomCoordinates returns a 'uniform random sample' in the sense that the probability that a point is drawn from any region is equal to the area of that region divided by the area of the entire sphere. This would not happen if you took a random uniform sample of longitude and latitude, as the sample would be biased towards the poles.

regularCoordiaates returns a set of coordinates that are regularly distributed on the globe.

Keywords
spatial
Usage
randomCoordinates(n)
regularCoordinates(N)
Arguments
n

Sample size (number of points (coordinate pairs))

N

Number of 'parts' in which the earth is subdived )

Value

Matrix of lon/lat coordiantes

Aliases
  • randomCoordinates
  • regularCoordinates
Examples
# NOT RUN {
randomCoordinates(3)
regularCoordinates(1)
# }
Documentation reproduced from package geosphere, version 1.5-10, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.