Skip to contents

Generate a t-SNE plot of combined groups with optional coloring and shaping.

Usage

plot_tsne_cluster(
  X,
  Y,
  MX,
  MY,
  color_var = NULL,
  shape_var = NULL,
  perplexity = 50,
  title = NULL,
  x_label = NULL,
  y_label = NULL,
  point_size = 1,
  seed = NULL
)

Arguments

X

Numeric matrix or data frame for the first group.

Y

Numeric matrix or data frame for the second group.

MX

Metadata for X.

MY

Metadata for Y.

color_var

Name of the metadata variable for color (optional).

shape_var

Name of the metadata variable for shape (optional).

perplexity

t-SNE perplexity parameter.

title

Plot title.

x_label

X-axis label.

y_label

Y-axis label.

point_size

Size of the points.

seed

Optional random seed.

Value

A ggplot object.