plot_feature | R Documentation |
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
plot_feature(
seu,
embedding = c("umap", "pca", "tsne"),
features,
dims = c(1, 2),
return_plotly = FALSE,
pt.size = 1
)
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 |
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.