long_gaussian_data: Elongated Gaussian Ellipsoid

View source: R/misread-tsne.R

long_gaussian_dataR Documentation

Elongated Gaussian Ellipsoid

Description

Elongated gaussian data from "How to Use t-SNE Effectively".

Usage

long_gaussian_data(n, dim, color = NULL)

Arguments

n

Number of points.

dim

Dimension of the gaussian.

color

Color to assign to the data points.

Details

Creates a randomly-sampled gaussian dataset of the specified dimension, with standard deviation following the harmonic series: the first column has standard deviation 1, the second 1/2, the third 1/3 and so on.

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(), cube_data(), gaussian_data(), grid_data(), link_data(), long_cluster_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 <- long_gaussian_data(n = 50, dim = 2)

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