nice_dim_plot: nice_dim_plot

Description Usage Arguments Value

View source: R/nice_dim_plot.R

Description

nicer looking version of the Seurat function DimPlot.

Usage

1
2
3
4
5
6
7
8
9
nice_dim_plot(
  seurat_obj,
  group_by = NULL,
  cols = NULL,
  pt_size = 1.3,
  label = T,
  reduction = "umap",
  dims_plot = 1:2
)

Arguments

seurat_obj

Seurat object.

group_by

what to colour the points by, usually a column in the Seurat object metadata.

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.

Value

UMAP or PCA plot.


mvhunter1/mvhspatialplots documentation built on April 24, 2021, 10:52 a.m.