powered by
rsphere(n, d)
n
d
rnorm
rcorr
## 100 points on circle z <- rsphere(100,2) plot(z) ## 100 points on a sphere z <- rsphere(100, 3) pairs(z)
Run the code above in your browser using DataLab