View source: R/heatmap_functions.R
plot_heatmap | R Documentation |
Create and optionally save a heatmap of the PubMed search results.
plot_heatmap(pubmed_search_results, file_directory = NULL, export = FALSE)
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. |
Invisibly returns a HeatmapList
object.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.