Skip to contents

Export featureplot to pdf without legend and axes

Usage

TS_featureplot_to_pdf_no_leg_no_axes(
  seurat_object,
  file_prefix,
  features,
  pt.size = 0.5,
  order = TRUE,
  cols = c("lightgray", "#FEFDE2", "#FEEAC7", "#FDD7AC", "#FDC591", "#FDB276", "#FC9F5B",
    "#FC8C40", "#FC8C40", "#EB753C", "#DA5D38", "#C94634", "#B72F30", "#A6172C",
    "#950028"),
  reduction = "umap",
  width = 4.4,
  height = 3.78
)

Arguments

seurat_object

The Seurat object you wish to plot

file_prefix

Prefix for the saved file, e.g. sample name

features

Vector of features to plot

pt.size

Dot size, default = 0.5

order

Whether to plot positive cells last, e.g. on top, default = TRUE

cols

Vector of 2 colors to use (low->high), default = c("lightgray", "red")

reduction

Dimensionality reduction technique to use for plotting, default = "umap"

width

Width (inches) of the resulting plot.

height

Height (inches) of the resulting plot.