.plotHeatmap {rliger} | R Documentation |
General heatmap plotting with prepared matrix and data.frames
Description
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
.
Usage
.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",
...
)
Arguments
dataMatrix |
Matrix object with features/factors as rows and cells as columns. |
dataName |
Text for heatmap color bar title. Default |
cellDF |
data.frame object. Number of rows must match with number of
columns of |
featureDF |
data.frame object. Number of columns must match with number
of rows of |
transpose |
Logical, whether to "rotate" the heatmap by 90 degrees so
that cell information is displayed by row. Default |
cellSplitVar , featureSplitVar |
Subset columns of |
dataScaleFunc |
A function object, applied to |
showCellLabel , showFeatureLabel |
Logical, whether to show cell barcodes,
gene symbols or factor names. Default |
showCellLegend , showFeatureLegend |
Logical, whether to show cell or
feature legends. Default |
cellAnnColList , featureAnnColList |
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 |
scale |
Logical, whether to take z-score to scale and center gene
expression. Applied after |
trim |
Numeric vector of two values. Limit the z-score value into this
range when |
baseSize |
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. |
cellTextSize , featureTextSize , legendTextSize |
Size of cell barcode
labels, gene/factor labels, or legend values. Default |
cellTitleSize , featureTitleSize , legendTitleSize |
Size of titles of the
cell slices, gene/factor slices, or the legends. Default |
viridisOption , viridisDirection |
See argument |
RColorBrewerOption |
When |
... |
Additional arguments to be passed to
|
Value
HeatmapList-class
object