dot_plot: Tailored dot plot

View source: R/utils_plot.R

dot_plotR Documentation

Tailored dot plot

Description

This function adapts the DotPlot Seurat function by providing additional plotting options.

Usage

dot_plot(
  seu,
  features,
  group.by = NULL,
  labels = NULL,
  xlab = "Signature",
  ylab = "Cluster",
  legend.position = "right",
  col_pal = NULL,
  ...
)

Arguments

seu

Seurat object (required).

features

Vector of features to plot.

group.by

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

labels

If we want to have different labels plotted for each feature.

xlab

Label for x-axis.

ylab

Label for y-axis.

legend.position

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

col_pal

Continuous colour palette to use, default "RdYlBu".

...

Additional parameters passed to Seurat's DotPlot.

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.