fibonaccisphere {cooltools} | R Documentation |

## Evenly distributed n points on a sphere

### Description

Distributes n points on a sphere in a relatively even fashion following the generalised Fibonacci algorithm, described at http://extremelearning.com.au/evenly-distributing-points-on-a-sphere/

### Usage

```
fibonaccisphere(n = 1000, r = 1, out.xyz = TRUE, out.sph = FALSE)
```

### Arguments

`n` |
number of points to be placed on the sphere |

`r` |
radius |

`out.xyz` |
logical flag specifying whether to return Cartesian coordinates (default is TRUE) |

`out.sph` |
logical flag specifying whether to return spherical coordinates (default is FALSE); |

### Value

matrix of n points (in n rows), in Cartesian and/or spherical coordinates.

### Author(s)

Danail Obreschkow

### See Also

### Examples

```
## plot standard projections of a 1000-point Fibonacci sphere
xyz = fibonaccisphere()
plot(xyz, asp=1, pch=16, cex=0.5)
```

[Package

*cooltools*version 2.4 Index]