random_walk: Random Walk Data

View source: R/misread-tsne.R

random_walkR Documentation

Random Walk Data

Description

Simulation data from a random walk process, from "How to Use t-SNE Effectively".

Usage

random_walk(n, dim)

Arguments

n

Number of points to sample.

dim

Number of dimensions of the dataset.

Details

Creates a dataset where the coordinate of each point is related to the previous point by a gaussian perturbation. Points are linearly mapped from their position in the walk to a rainbow color scheme.

Value

Data frame with coordinates in the X1, X2 ... Xn 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(), simplex_data(), subset_clusters_data(), three_clusters_data(), trefoil_data(), two_clusters_data(), two_different_clusters_data(), unlink_data()

Examples

df <- random_walk(n = 100, dim = 100)

jlmelville/snedata documentation built on March 5, 2025, 12:22 p.m.