Skip to contents

Plot an embedding result

Usage

# S3 method for class 'fastEmbedR_embedding'
plot(
  x,
  labels = x$labels,
  pch = 21,
  bg = NULL,
  col = "black",
  xlab = "Component 1",
  ylab = "Component 2",
  main = NULL,
  ...
)

Arguments

x

A fastEmbedR_embedding object.

labels

Optional labels used to color plotted observations.

pch

Plotting symbol passed to graphics::plot().

bg

Point background colors. When NULL, integer colors are derived from labels, or white is used when labels are absent.

col

Point border or foreground color.

xlab, ylab

Axis labels.

main

Plot title. NULL derives a title from the fitted method.

...

Additional arguments passed to graphics::plot().

Value

The input object, invisibly.