do_tsne: Performs t-SNE

View source: R/swarm_space.R

do_tsneR Documentation

Performs t-SNE

Description

This function calculates the coordinates of each event in the t-SNE space.

Usage

do_tsne(df, tsne_rand_seed, tsne_perplexity)

Arguments

df

A dataframe with the metrics of collective motion per event.

tsne_rand_seed

Random seed to be able to reproduce the t-SNE analysis.

tsne_perplexity

Perplexity parameter for tsne. Usually between 10-50.

Value

A dataframe with X and Y coordinates per event in the t-SNE space.

Author(s)

Marina Papadopoulou m.papadopoulou.rug@gmail.com


swaRmverse documentation built on Oct. 10, 2024, 5:08 p.m.