nice_dim_plot: nice_dim_plot

View source: R/nice_dim_plot.R

nice_dim_plotR Documentation

nice_dim_plot

Description

nicer looking version of the Seurat function DimPlot.

Usage

nice_dim_plot(
  seurat_obj,
  group_by = NULL,
  cols = NULL,
  pt_size = 1.3,
  label = T,
  reduction = "umap",
  dims_plot = 1:2,
  n_col = NULL
)

Arguments

seurat_obj

Seurat object.

group_by

optional: what to colour the points by, usually a column in the Seurat object metadata. Otherwise will color by the default ident.

cols

optional: colours to label the grouped points by.

pt_size

point size.

label

label groups with text on plot?

reduction

either "umap" or "pca".

dims_plot

dimensions to plot.

n_col

number of columns, only relevant if length of group_by > 1

Value

UMAP or PCA plot.


mvhunter1/mvhfunctions documentation built on May 31, 2024, 3:36 p.m.