unlink_data: Two Unlinked Rings

View source: R/misread-tsne.R

unlink_dataR Documentation

Two Unlinked Rings

Description

Points sampled from two unlinked circles, from "How to Use t-SNE Effectively".

Usage

unlink_data(n)

Arguments

n

Number of points to sample.

Details

Creates a 3D dataset where points are uniformly sampled from two (2D) circles of unit radius, separated by 3 units. The two circles are not co-planar. Points are colored depending from which circle they are sampled from.

For the linked version, see link_data.

Value

Data frame with coordinates in the x, y, z columns, and color in the color column.

References

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

See Also

Other distill functions: circle_data(), cube_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()

Examples

df <- unlink_data(n = 50)

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