View source: R/plotSCEHeatmap.R
plotSCEHeatmap | R Documentation |
Plot heatmap of using data stored in SingleCellExperiment Object
plotSCEHeatmap(
inSCE,
useAssay = "logcounts",
useReducedDim = NULL,
doLog = FALSE,
featureIndex = NULL,
cellIndex = NULL,
scale = TRUE,
trim = c(-2, 2),
featureIndexBy = "rownames",
cellIndexBy = "rownames",
rowDataName = NULL,
colDataName = NULL,
aggregateRow = NULL,
aggregateCol = NULL,
featureAnnotations = NULL,
cellAnnotations = NULL,
featureAnnotationColor = NULL,
cellAnnotationColor = NULL,
palette = c("ggplot", "celda", "random"),
heatmapPalette = c("sequential", "diverging"),
addCellSummary = NULL,
rowSplitBy = NULL,
colSplitBy = NULL,
rowLabel = FALSE,
colLabel = FALSE,
rowLabelSize = 6,
colLabelSize = 6,
rowDend = TRUE,
colDend = TRUE,
title = NULL,
rowTitle = "Features",
colTitle = "Cells",
rowGap = grid::unit(0, "mm"),
colGap = grid::unit(0, "mm"),
border = FALSE,
colorScheme = NULL,
...
)
inSCE |
SingleCellExperiment inherited object. |
useAssay |
character. A string indicating the assay name that
provides the expression level to plot. Only for |
useReducedDim |
character. A string indicating the reducedDim name that
provides the expression level to plot. Only for |
doLog |
Logical scalar. Whether to do |
featureIndex |
A vector that can subset the input SCE object by rows
(features). Alternatively, it can be a vector identifying features in
another feature list indicated by |
cellIndex |
A vector that can subset the input SCE object by columns
(cells). Alternatively, it can be a vector identifying cells in another
cell list indicated by |
scale |
Whether to perform z-score scaling on each row. Default
|
trim |
A 2-element numeric vector. Values outside of this range will be
trimmed to their nearst bound. Default |
featureIndexBy |
A single character specifying a column name of
|
cellIndexBy |
A single character specifying a column name of
|
rowDataName |
character. The column name(s) in |
colDataName |
character. The column name(s) in |
aggregateRow |
Feature variable for aggregating the heatmap by row. Can
be a vector or a |
aggregateCol |
Cell variable for aggregating the heatmap by column. Can
be a vector or a |
featureAnnotations |
|
cellAnnotations |
|
featureAnnotationColor |
A named list. Customized color settings for
feature labeling. Should match the entries in the |
cellAnnotationColor |
A named list. Customized color settings for
cell labeling. Should match the entries in the |
palette |
Choose from |
heatmapPalette |
Choose from |
addCellSummary |
Add summary barplots to column annotation. Supply the name of the column in colData as a character. This option will add summary for categorical variables as stacked barplots. |
rowSplitBy |
character. Do semi-heatmap based on the grouping of
this(these) annotation(s). Should exist in either |
colSplitBy |
character. Do semi-heatmap based on the grouping of
this(these) annotation(s). Should exist in either |
rowLabel |
Use a logical for whether to display all the feature names,
a single character to display a column of |
colLabel |
Use a logical for whether to display all the cell names, a
single character to display a column of |
rowLabelSize |
A number for the font size of feature names. Default
|
colLabelSize |
A number for the font size of cell names. Default
|
rowDend |
Whether to display row dendrogram. Default |
colDend |
Whether to display column dendrogram. Default |
title |
The main title of the whole plot. Default |
rowTitle |
The subtitle for the rows. Default |
colTitle |
The subtitle for the columns. Default |
rowGap |
A numeric value or a |
colGap |
A numeric value or a |
border |
A logical scalar. Whether to show the border of the heatmap or
splitted heatmaps. Default |
colorScheme |
function. A function that generates color code by giving
a value. Can be generated by |
... |
Other arguments passed to |
A ggplot
object.
Yichen Wang
data(scExample, package = "singleCellTK")
plotSCEHeatmap(sce[1:3,1:3], useAssay = "counts")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.