Nothing

```
sph2cart = function(sph) {
# Convert spherical (egg) coordinates to Cartesian coordinates
r = sph[1]
theta = sph[2]
phi = sph[3]
x = r*cos(theta)*sin(phi)
y = r*sin(theta)*sin(phi)
z = r*cos(phi)
return (c(x, y, z))
}
```

**Any scripts or data that you put into this service are public.**

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.