Learn R Programming

PRECAST (version 1.6.6)

doHeatmap: Heatmap for spots-by-feature matrix

Description

Plot heatmap for a Seurat object with expressioin data.

Usage

doHeatmap(seu, features=NULL, cell_label='Cell type', grp_label = FALSE,
                      pt_size=4, grp_color=NULL, ...)

Value

Return a ggplot2 object.

Arguments

seu

an object named "Seurat". The object of class "Seurat" must include slot "scale.data".

features

an optional string vector, the features to be plotted.

cell_label

an optional string, the name of legend.

grp_label

an optional logical value, whether display the group names.

pt_size

the point size used in the plot

grp_color

the colors to use for the group color bar.

...

Other paramters passed to DoHeatmap.

Author

Wei Liu

Details

Nothing

See Also

featurePlot

Examples

Run this code

  library(Seurat)
  data(PRECASTObj)
  PRECASTObj <- SelectModel(PRECASTObj)
  seuInt <- IntegrateSpaData(PRECASTObj, species='unknown')
  seuInt <- ScaleData(seuInt)
  doHeatmap(seuInt, features=row.names(seuInt)[1:5])
  

Run the code above in your browser using DataLab