| helix | R Documentation |
Simulation data in the shape of a 3D toroidal helix.
helix(n = 1000, rmajor = 2, rminor = 1, nwinds = 8)
n |
Number of points to create. |
rmajor |
Major radius. |
rminor |
Minor radius. |
nwinds |
Number of winds the helix makes. |
Creates a series of points sampled from a 3D helix with the ends joined to each other.
Unlike ball and sphere, this data set is not
randomly sampled.
Points are colored based on their distances from the origin.
Data frame with x, y, z columns containing the
coordinates of the points and color the RGB color.
A dataset like this was used in: Lee, J. A., Peluffo-Ordo'nez, D. H., & Verleysen, M. (2015). Multi-scale similarities in stochastic neighbour embedding: Reducing dimensionality while preserving both local and global structure. Neurocomputing, 169, 246-261.
## Not run:
helix1000 <- helix(n = 1000)
# Coloring should be obvious with a 2D plot of the cross section:
plot(helix1000$x, helix1000$y, col = helix1000$color, pch = 20)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.