dim_plot_tailored: Tailored dim plot

View source: R/utils_plot.R

dim_plot_tailoredR Documentation

Tailored dim plot

Description

This function generates the same plot as dim_plot, although it focuses on a single group and generates slightly better looking plot.

Usage

dim_plot_tailored(
  seu,
  group.by,
  reduction = "umap",
  legend.position = "right",
  col_pal = NULL,
  label = FALSE,
  label.size = 7,
  pt.size = 1.4,
  pt.shape = 21,
  pt.stroke = 0.05,
  pt.alpha = 1,
  dims_plot = c(1, 2),
  ...
)

Arguments

seu

Seurat object

group.by

Name of metadata column to group (color) cells by (required).

reduction

Dimensionality reduction to use.

legend.position

Position of legend, default "right" (set to "none" for clean plot).

col_pal

Continuous colour palette to use, default "RdYlBu".

label

Whether to label the groups in 'reduction' space.

label.size

Sets size of labels.

pt.size

Adjust point size for plotting.

pt.shape

Adjust point shape for plotting.

pt.stroke

Stroke value for each point.

pt.alpha

Adjust alpha value for each point.

dims_plot

Dimensions to plot, must be a two-length numeric vector specifying x- and y-dimensions.

...

Additional parameters passed to ggplot2::geom_point.

Value

A ggplot2 object.

Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk


andreaskapou/SeuratPipe documentation built on Nov. 22, 2022, 4:16 p.m.