t-SNE projection of samples coloured by group
Usage
plot_tsne(
data,
labs,
title = "Evaluate the batch effect between groups",
perplexity = 30,
seed = 1,
palette = "house",
font = "Arial",
...
)Arguments
- data
Matrix or data frame with samples in rows and features in columns.
- labs
Group labels, one per sample.
- title
Plot title.
- perplexity
Perplexity for the t-SNE embedding.
- seed
Optional seed; t-SNE is stochastic, so a seed makes a figure reproducible.
- palette
Palette name passed to
get_color().- font
Font family used in the plot.
- ...
Passed to
plot_embedding(), for exampleellipse,seed, orlabel_centres.