pointsphere | R Documentation |
Randomly generates data points within a sphere that are uniformly distributed.
pointsphere(N = 100, longlim = c(0, 360), latlim = c(-90, 90), rlim = c(0, 1))
N |
Number of random points. |
longlim |
Limits of longitude in degrees. |
latlim |
Limits of latitude in degrees. |
rlim |
Limits of radius. |
This function randomly generates data points within a sphere that are uniformly distributed. 3D pointing is based in efficient inversion of random uniform distributions, rather than a Monte-Carlo approach.
Returns a data.frame comtaining the longitude, latitude and radius of the random points generated.
Aaron Robotham
rgl.sphgrid
,rgl.sphcirc
,rgl.sphpoints
,rgl.sphtext
,rgl.sphsun
,rgl.sphMW
,sph2car
,car2sph
rgl.sphgrid() rgl.sphpoints(pointsphere(100,c(0,90),c(0,45),c(0.25,0.8)),deg=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.