This is not an exported function. This documentation just
serves for a manual of extra arguments that users can use when generating
heatmaps with plotGeneHeatmap
or
plotFactorHeatmap
.
Note that the following arguments are pre-occupied by upstream wrappers so
users should not include them in a function call: dataMatrix
,
dataName
, cellDF
, featureDF
, cellSplitVar
,
featureSplitVar
.
The following arguments of Heatmap
is occupied
by this function, so users should include them in a function call as well:
matrix
, name
, col
, heatmap_legend_param
,
top_annotation
, column_title_gp
, column_names_gp
,
show_column_names
, column_split
, column_gap
,
left_annotation
, row_title_gp
, row_names_gp
,
show_row_names
, row_split
, row_gap
.
.plotHeatmap(
dataMatrix,
dataName = "Value",
cellDF = NULL,
featureDF = NULL,
transpose = FALSE,
cellSplitVar = NULL,
featureSplitVar = NULL,
dataScaleFunc = NULL,
showCellLabel = FALSE,
showCellLegend = TRUE,
showFeatureLabel = TRUE,
showFeatureLegend = TRUE,
cellAnnColList = NULL,
featureAnnColList = NULL,
scale = FALSE,
trim = c(-2, 2),
baseSize = 8,
cellTextSize = NULL,
featureTextSize = NULL,
cellTitleSize = NULL,
featureTitleSize = NULL,
legendTextSize = NULL,
legendTitleSize = NULL,
viridisOption = "A",
viridisDirection = -1,
RColorBrewerOption = "RdBu",
...
)
HeatmapList-class
object
Matrix object with features/factors as rows and cells as columns.
Text for heatmap color bar title. Default Value
.
data.frame object. Number of rows must match with number of
columns of dataMatrix
.
data.frame object. Number of columns must match with number
of rows of dataMatrix
.
Logical, whether to "rotate" the heatmap by 90 degrees so
that cell information is displayed by row. Default FALSE
.
Subset columns of cellDF
or
featureDF
, respectively.
A function object, applied to dataMatrix
.
Logical, whether to show cell barcodes,
gene symbols or factor names. Default TRUE
for gene/factors but
FALSE
for cells.
Logical, whether to show cell or
feature legends. Default TRUE
. Can be a scalar for overall control
or a vector matching with each given annotation variable.
List object, with each element a
named vector of R-interpretable color code. The names of the list elements
are used for matching the annotation variable names. The names of the colors
in the vectors are used for matching the levels of a variable (factor object,
categorical). Default NULL
generates ggplot-flavor categorical colors.
Logical, whether to take z-score to scale and center gene
expression. Applied after dataScaleFunc
. Default FALSE
.
Numeric vector of two values. Limit the z-score value into this
range when scale = TRUE
. Default c(-2, 2)
.
One-parameter control of all text sizes. Individual text element sizes can be controlled by other size arguments. "Title" sizes are 2 points larger than "text" sizes when being controlled by this.
Size of cell barcode
labels, gene/factor labels, or legend values. Default NULL
.
Size of titles of the
cell slices, gene/factor slices, or the legends. Default NULL
.
See argument option
and
direction
of viridis
. Default "A"
and -1
.
When scale = TRUE
, heatmap color will be
mapped with brewer.pal
. This is passed to
name
. Default "RdBu"
.
Additional arguments to be passed to
Heatmap
.