runifsphere: Random Points on a Sphere

Description Usage Arguments Details Value Author(s) Examples

Description

These functions generate random points on a sphere using different rules.

Usage

1
2

Arguments

n

The number of points to be simulated.

Details

runifsphere generates uniformly-distributed random points on the sphere.

runifsphere.wrong generates random points which are uniformly distributed in (longitude, latitude) coordinates. These are not uniformly distributed on the sphere.

Value

A data frame containing two columns of coordinates: the first column for longitude, the second column for latitude.

Author(s)

Adrian Baddeley and Tom Lawrence

Examples

1
2

Example output

          lon       lat
1    97.76848  20.32291
2   -33.30475  14.65160
3   -23.31677 -33.12787
4    68.80180 -10.92769
5   -35.47525  20.28427
6   115.37504  61.40645
7  -151.69676  11.83529
8    42.55497 -64.21494
9  -137.82906  22.76947
10  167.49941 -29.97833
          lon        lat
1   -86.39803 -10.125280
2   -69.75103 -74.803175
3    70.56025 -37.413075
4   -75.42396 -69.448177
5  -150.68669  35.131133
6   151.01050  -2.487126
7   -70.26517 -48.944248
8   -17.46330  -5.085002
9   -25.22578 -39.451255
10  142.52303  63.329046

globe documentation built on May 2, 2019, 10:25 a.m.