grid_data: 2D Grid

View source: R/misread-tsne.R

grid_dataR Documentation

2D Grid

Description

2D grid data from "How to Use t-SNE Effectively".

Usage

grid_data(n = 10)

Arguments

n

Number of points per side.

Details

Creates a two-dimensional square grid with equal spacing between points. Point color goes from dark to light with increasing x coordinate and from green to blue with increasing y.

Value

Data frame with coordinates in the x and y columns, and a per-point color in the color column.

References

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

See Also

Other distill functions: circle_data(), cube_data(), gaussian_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 <- grid_data(n = 10)

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