This function will create a predefined number of points randomly distributed on the surface of a sphere with a given radius.
Usage
rpsphere(n = 1, output = "cartesian", radius = authRadius, origin = c(0, 0, 0))Arguments
- n
(
numeric) The number of random points to be created.- output
(
character) The coordinate system of the new points. Can either be"cartesian"for XYZ coordiates or"polar"for spherical, longitude-latitudes coordinates.- radius
(
numeric) The radius of the sphere- origin
(
numeric) The center of the sphere (XYZ coordinates).

