plot_feature: Plot Feature

View source: R/plotting.R

plot_featureR Documentation

Plot Feature

Description

Plots gene or transcript expression overlaid on a given embedding. If multiple features are supplied the joint density of all features will be plotted using Nebulosa

Usage

plot_feature(
  seu,
  embedding = c("umap", "pca", "tsne"),
  features,
  dims = c(1, 2),
  return_plotly = FALSE,
  pt.size = 1
)

Arguments

seu

A Seurat object

embedding

Dimensional reduction technique to be used

features

Features to plot

dims

Dimensions to plot, must be a two-length numeric vector

Examples


# static, single feature
plot_feature(human_gene_transcript_seu, embedding = "umap", features = c("NRL"), return_plotly = FALSE)
# static, multi-feature
plot_feature(human_gene_transcript_seu, embedding = "umap", features = c("RXRG", "NRL"), return_plotly = FALSE)
# interactive, multi-feature
plotly_plot <- plot_feature(human_gene_transcript_seu, embedding = "umap", features = c("RXRG", "NRL"))
print(plotly_plot)


whtns/seuratTools documentation built on Oct. 28, 2024, 7:18 a.m.