rx2y2 | R Documentation |
Random point conditioned on distance
Return x and y coordinates of random points conditional on a distance or range of distances from input point.
rx2y2(p1, d, n = 1)
p1 |
Numerical vector with decimal longitude and latitude of first point. |
d |
Number specifying the distance (in decimal degrees) between the new point and the point with coordinates 'x1y1', or, a numerical vector, in which case the distance from x1y1 will be randomly drawn from values in the range of d. |
n |
Number of points to return. Default 1. |
Numerical vector with longitude and latitude of new point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.