View source: R/Visualization.R
featurePlot | R Documentation |
Plot spatial heatmap for a feature of Seurat object with spatial transcriptomics data.
featurePlot(seu, feature=NULL, cols=NULL, pt_size=1, title_size =16, quant=0.5,
assay='RNA' , reduction="position")
seu |
an object named "Seurat". The object of class "Seurat" must include slot "scale.data". |
feature |
an optional string, specify the name of feature to be plotted. If it is null, the first feature will be plotted. |
cols |
colors used in the plot |
pt_size |
the size of point in the spatial heatmap plot. |
title_size |
the title size used for the plot. |
quant |
the quantile value to generate the gradient color map. |
assay |
the assay selected for plot. |
reduction |
the Reduc object for plot. |
Nothing
Return a ggplot2 object.
nothing
Wei Liu
None
library(Seurat)
data(PRECASTObj)
PRECASTObj <- SelectModel(PRECASTObj)
seuInt <- IntegrateSpaData(PRECASTObj, species='unknown')
seuInt <- ScaleData(seuInt)
featurePlot(seuInt, assay='PRE_CAST')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.