View source: R/visualize_gsea.R
| create_heatmap_plot | R Documentation |
Create heatmap visualization of GSEA results
create_heatmap_plot(
gsea_results,
abundance,
metadata,
group,
cluster_rows = TRUE,
cluster_columns = TRUE,
show_rownames = TRUE,
annotation_colors = NULL,
default_group_colors = c("#E41A1C", "#377EB8"),
col_fun = NULL
)
gsea_results |
A data frame containing GSEA results from the pathway_gsea function |
abundance |
A data frame containing the original abundance data |
metadata |
A data frame containing sample metadata |
group |
A character string specifying the column name in metadata that contains the grouping variable |
cluster_rows |
A logical value indicating whether to cluster rows |
cluster_columns |
A logical value indicating whether to cluster columns |
show_rownames |
A logical value indicating whether to show row names |
annotation_colors |
A list of colors for annotations |
default_group_colors |
Colors used to construct the group annotation palette when annotation_colors is NULL |
col_fun |
A color function (e.g., circlize::colorRamp2) to control the main heatmap colors (optional) |
A ComplexHeatmap object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.