Create an interactive correlation heatmap of top variable genes using Heatmaply.
CorrPlotHeatmaply(x, Color, type, cluster, scale, show_names, NumGenes)
A Plotly object (heatmaply) representing the interactive correlation heatmap.
Numeric matrix of log-CPM values (genes × samples), e.g., from "edgeR::cpm()".
Character. Name of a continuous palette from the "paletteer" package.
Character. Correlation method passed to "Hmisc::rcorr()": "pearson", "spearman", or "kendall".
Character or logical. Clustering option for dendrogram: "both", "row", "column", or "none".
Character. Scaling mode for the heatmap: "row", "column", or "none".
Character. One of "both", "row", "column", or "none" to display row/column labels.
Integer. Number of top-variance genes to include in the correlation.
This function selects the highest-variance genes from a log-CPM matrix, computes pairwise correlation coefficients (and p-values) with "Hmisc::rcorr()", and renders an interactive correlation heatmap via "heatmaply::heatmaply_cor()", using clustering and scaling options derived from "pheatmap" call.
Compute per-gene variance and select the top "NumGenes".
Subset the matrix and compute correlations (and p-values) via "Hmisc::rcorr()".
Generate a temporary static heatmap with "pheatmap" to extract dendrograms.
Render an interactive heatmap with "heatmaply::heatmaply_cor()", passing in color, clustering, scaling, tick-label visibility, and point size based on -log10(p-value).