plotGeneHeatmap | R Documentation |
Plot Heatmap of Gene Expression or Factor Loading
plotGeneHeatmap(
object,
features,
cellIdx = NULL,
slot = c("normData", "rawData", "scaleData", "scaleUnsharedData"),
useCellMeta = NULL,
cellAnnotation = NULL,
featureAnnotation = NULL,
cellSplitBy = NULL,
featureSplitBy = NULL,
viridisOption = "C",
...
)
plotFactorHeatmap(
object,
factors = NULL,
cellIdx = NULL,
slot = c("H.norm", "H"),
useCellMeta = NULL,
cellAnnotation = NULL,
factorAnnotation = NULL,
cellSplitBy = NULL,
factorSplitBy = NULL,
trim = c(0, 0.03),
viridisOption = "D",
...
)
object |
A liger object, with data to be plot available. |
features , factors |
Character vector of genes of interests or numeric
index of factor to be involved. |
cellIdx |
Valid index to subscribe cells to be included. See
|
slot |
Use the chosen matrix for heatmap. For |
useCellMeta |
Character vector of available variable names in
|
cellAnnotation |
data.frame object for using external annotation, with
each column a variable and each row is a cell. Row names of this data.frame
will be used for matching cells involved in heatmap. For cells not found in
this data.frame, |
featureAnnotation , factorAnnotation |
Similar as |
cellSplitBy |
Character vector of variable names available in annotation
given by |
featureSplitBy , factorSplitBy |
Similar as |
viridisOption |
See |
... |
Arguments passed on to
|
trim |
Numeric vector of two numbers. Higher value limits the maximum
value and lower value limits the minimum value. Default |
HeatmapList-class
object
plotGeneHeatmap(pbmcPlot, varFeatures(pbmcPlot))
plotGeneHeatmap(pbmcPlot, varFeatures(pbmcPlot),
useCellMeta = c("leiden_cluster", "dataset"),
cellSplitBy = "leiden_cluster")
plotFactorHeatmap(pbmcPlot)
plotFactorHeatmap(pbmcPlot, cellIdx = pbmcPlot$leiden_cluster %in% 1:3,
useCellMeta = c("leiden_cluster", "dataset"),
cellSplitBy = "leiden_cluster")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.