sphere: Sphere data set.

View source: R/simulation.R

sphereR Documentation

Sphere data set.

Description

Simulation data randomly sampled from the surface of a 3D sphere.

Usage

sphere(n = 1000)

Arguments

n

The number of points to create.

Details

Creates a series of points sampled from a 3D spherical surface.

Points are colored based on the angle theta in their spherical coordinate presentation. You can think of it as dividing the sphere surface like the segments of an orange.

Value

Data frame with x, y, z columns containing the coordinates of the points and color the RGB color.

References

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.


jlmelville/snedata documentation built on Jan. 13, 2024, 2:06 a.m.