Method for heatmap creation
create_heatmap(
data,
unitlabel = "auto",
row.label = TRUE,
row.custom.label = NULL,
column.label = TRUE,
column.custom.label = NULL,
clustering = "none",
clustdist = "auto",
clustmethod = "auto",
colors = NULL,
winsorize.colors = NULL,
plot.method = "static",
width = "auto",
height = "auto",
ppi = 72,
scale = 1
)
data.table containing plot data. First column contains row labels.
label of the colorbar
Logical whether or not to show row labels.
Vector of custom row labels.
Logical whether or not to show column labels.
Vector of custom column labels.
How to apply clustering on data. c("none", "both", "column", "row")
Which cluster distance to use. See heatmapr
.
Which cluster method to use. See heatmapr
.
Vector of colors used for color palette.
NULL or a vector of length two, giving the values of colorbar ends (default = NULL).
Choose which method is used for plotting. Either "plotly" or "complexHeatmap" (Default = "complexHeatmap").
Set width of plot in cm (Default = "auto").
Set height of plot in cm (Default = "auto").
Pixel per inch (default = 72).
Modify plot size while preserving aspect ratio (Default = 1).
Returns list(plot = complexHeatmap/ plotly object, width = width in cm, height = height in cm, ppi = pixel per inch, exceed_size = Boolean whether width/ height exceeded max) depending on plot.method.
Width/ height limit = 500. If exceeded default to 500 and issue exceed_size = TRUE.