cube_data: Cube Data

View source: R/misread-tsne.R

cube_dataR Documentation

Cube Data

Description

Random points sampled from a cube, from "How to Use t-SNE Effectively".

Usage

cube_data(n, dim, color = "#003399")

Arguments

n

Number of points to sample.

dim

Dimension of the cube.

color

Color to apply to each point.

Details

Create a dataset of the of points randomly sampled from a unit cube of the specified dimension.

Value

Data frame with coordinates in the X1, X2 ... Xdim columns, and color in the color column.

References

http://distill.pub/2016/misread-tsne/

See Also

Other distill functions: circle_data(), gaussian_data(), grid_data(), link_data(), long_cluster_data(), long_gaussian_data(), ortho_curve(), random_circle_cluster_data(), random_circle_data(), random_jump(), random_walk(), simplex_data(), subset_clusters_data(), three_clusters_data(), trefoil_data(), two_clusters_data(), two_different_clusters_data(), unlink_data()

Examples

df <- cube_data(n = 50, dim = 3)

jlmelville/snedata documentation built on Sept. 16, 2024, 7:09 p.m.