layout_heatmap {ggalign} | R Documentation |
Arrange plots around a Heatmap
Description
ggheatmap
is an alias of layout_heatmap
.
Usage
layout_heatmap(
data,
mapping = aes(),
...,
filling = TRUE,
set_context = TRUE,
order = NULL,
name = NULL,
environment = parent.frame()
)
ggheatmap(
data,
mapping = aes(),
...,
filling = TRUE,
set_context = TRUE,
order = NULL,
name = NULL,
environment = parent.frame()
)
Arguments
data |
A numeric or character vector, a data frame, and any other data which can be converted into a matrix. Simple vector will be converted into a one column matrix. |
mapping |
Default list of aesthetic mappings to use for plot. If |
... |
Additional arguments passed to geom_tile.
Only used when |
filling |
A boolean value indicates whether to fill the heatmap. If you
want to custom the filling style, you can set to |
set_context |
A single boolean value indicates whether to set the active
context to current plot. If |
order |
An single integer for the layout order. |
name |
A string of the plot name. Used to switch the active context in
|
environment |
Value
A HeatmapLayout
object.
ggplot2 specification
The data input in ggheatmap
will be converted into the long formated data
frame when drawing. The default mapping will use aes(.data$.x, .data$.y)
,
you can use mapping
argument to control it. The data in the underlying
ggplot
object contains following columns:
-
.xpanel
and.ypanel
: the column and row panel -
.x
and.y
: thex
andy
coordinates -
.row_names
and.column_names
: A factor of the row and column names of the original matrix (only applicable when names exist). -
.row_index
and.column_index
: the row and column index of the original matrix. -
value
: the actual matrix value.
Examples
ggheatmap(1:10)
ggheatmap(letters)