Plot dimensionality reduction results from run_<method> or a Seurat object.

plot_reduction(
  obj,
  reduction = NULL,
  metadata = NULL,
  fix_rownames = FALSE,
  color_var = NULL,
  label_var = NULL,
  size_var = NULL,
  labels = TRUE,
  max.overlaps = 30,
  show_plot = TRUE,
  point_alpha = 0.6
)

Arguments

obj

Object of class:

  • DimReduc

  • Seurat

  • Seurat

reduction

Which reduction to extract from. Only used if obj is of class Seurat.

Value

ggplot object