nice_feature_plot: nice_feature_plot

Description Usage Arguments Value

View source: R/nice_feature_plot.R

Description

nicer looking version of the Seurat function FeaturePlot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
nice_feature_plot(
  seurat_obj,
  features,
  pt.size = 1.3,
  n_col = NULL,
  reduction = "umap",
  dims_plot = 1:2,
  diverging_cmap = F,
  scale_data = F,
  cutoffs = NA,
  order = F,
  cols = NULL
)

Arguments

seurat_obj

Seurat object.

features

genes to plot.

pt.size

size of plotted points.

n_col

if plotting multiple genes, number of columns in final plot_grid object.

reduction

one of "umap" or "pca".

dims_plot

number of dimensions to plot.

diverging_cmap

if T, will fill points with diverging colours between blue and red. otherwise, will use a linear colourmap.

scale_data

plot Z-scored data?

cutoffs

expression level cutoffs for plotting.

order

plot cells in order of expression?

cols

optional: colourmap.

Value

UMAP or PCA plot.


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