plot_heatmap: Plot Heatmap

View source: R/heatmap_functions.R

plot_heatmapR Documentation

Plot Heatmap

Description

Create and optionally save a heatmap of the PubMed search results.

Usage

plot_heatmap(pubmed_search_results, file_directory = NULL, export = FALSE)

Arguments

pubmed_search_results

A data frame containing raw search results with genes and terms.

file_directory

Directory for saving the output plot. Defaults to NULL.

export

Logical indicating whether to export the plot. Defaults to FALSE.

Value

Invisibly returns a HeatmapList object.

Examples

# Example data frame
data <- data.frame(Gene = c("Gene1", "Gene2"),
                   Term1 = c(10, 20),
                   Term2 = c(5, 15),
                   Total = c(15, 35),
                   PubMed_Rank = c(1, 2))
plot_heatmap(data, file_directory = tempdir(), export = FALSE)

DeSciDe documentation built on Sept. 1, 2025, 1:08 a.m.