process_heatmap_data {plotthis} | R Documentation |
Process/normalize data passed to Heatmap()
Description
This function is used to process the data passed to Heatmap()
.
Usage
process_heatmap_data(
data,
in_form,
values_by,
name,
split_by,
split_by_sep,
rows_by,
rows_by_sep,
rows_name,
rows_split_by,
rows_split_by_sep,
rows_split_name,
columns_by,
columns_by_sep,
columns_name,
columns_split_by,
columns_split_by_sep,
columns_split_name,
pie_group_by,
pie_group_by_sep,
pie_name,
rows_data,
columns_data
)
Arguments
data |
A data frame or matrix containing the data to be plotted.
Based on the
|
in_form |
The format of the data. Can be one of |
values_by |
A character of column name in |
name |
A character string to name the heatmap (will be used to rename |
split_by |
A character of column name in |
split_by_sep |
A character string to concat multiple columns in |
rows_by |
A vector of column names in |
rows_by_sep |
A character string to concat multiple columns in |
rows_name |
A character string to rename the column created by |
rows_split_by |
A character of column name in |
rows_split_by_sep |
A character string to concat multiple columns in |
rows_split_name |
A character string to rename the column created by |
columns_by |
A vector of column names in |
columns_by_sep |
A character string to concat multiple columns in |
columns_name |
A character string to rename the column created by |
columns_split_by |
A character of column name in |
columns_split_by_sep |
A character string to concat multiple columns in |
columns_split_name |
A character string to rename the column created by |
pie_group_by |
A character of column name in |
pie_group_by_sep |
A character string to concat multiple columns in |
pie_name |
A character string to rename the column created by |
rows_data |
A data frame containing additional data for rows, which can be used to add annotations to the heatmap.
It will be joined to the main data by |
columns_data |
A data frame containing additional data for columns, which can be used to add annotations to the heatmap.
It will be joined to the main data by |
Value
A list containing the processed data and metadata:
-
data
: A list of data frames, one for each level ofsplit_by
. If nosplit_by
is provided, the name will be"..."
. Each data frame is in the long format. -
values_by
: The name of the column containing the values to be plotted. -
rows_by
: The name of the column containing the row information. -
rows_split_by
: The name of the column containing the row split information. -
columns_by
: The name of the column containing the column information. -
columns_split_by
: The name of the column containing the column split information. -
pie_group_by
: The name of the column containing the pie group information.