Converts a matrix to the correct format for heatmapping in ``ggplot2`` with an option to order rows and columns.
prepDataForggHeatmap(
X,
row_order = NULL,
col_order = NULL,
x_axis = "Feature",
y_axis = "Item"
)
A long data.frame containing columns `Feature` (the x-axis position of the entry for geom_tile()), `Item` (the y-axis position of the entry for geom_tile()), and `Entry` (value in similarity matrix).
Matrix.
Order for rows to be represented in heatmap along the y-axis. Can be ``NULL`` (order defined on data using `hierarchical clustering), ``FALSE`` (no ordering applied), or a vector of indices.
Order for columns to be represented in heatmap along the x-axis. Can be ``NULL`` (order defined on data using `hierarchical clustering), ``FALSE`` (no ordering applied), or a vector of indices.
The name for the column defining the x-axis. Defaults to ``"Feature"``.
The name for the column defining the y-axis. Defaults to ``"Item"``.