Pheatmap
Pheatmap is an R package that provides a user-friendly interface for generating enhanced heatmaps, with built-in support for annotations, clustering, and customizable aesthetics. It was developed to offer a convenient alternative to traditional heatmap plotting functions and is widely used in fields such as genomics and transcriptomics. The package is available on CRAN and is commonly used in data exploration and visualization workflows.
Key features of pheatmap include the ability to cluster rows and columns using hierarchical clustering with
Input to pheatmap is typically a numeric matrix or data frame, with NA values allowed. The function
Example usage: library(pheatmap); pheatmap(mat); pheatmap(mat, scale="row", clustering_distance_rows="euclidean", clustering_method="complete"); pheatmap(mat, annotation_col=annotation_col, display_numbers=TRUE).