Make Flexible 'ggplot2' Correlation Heatmaps
Add annotations to ggplot heatmap
Add dendrogram to ggplot object.
Add diagonal names to heatmap.
Add a layout column to long format data for mixed layouts.
Draw triangles in the diagonal to split the it between the two triangl...
Successively apply dendextend functions to a dendrogram.
Check names of annotation
Check annotation name parameters for deprecated usage.
Check cell labels if they are ok.
Check that dendrograms are positioned correctly
Check that layout and mode are correct
Check (supposed) logical values.
Check input numeric arguments for class and length.
Cluster data using hierarchical clustering or use provided clustering.
Make a correlation matrix from long format data.
Get a default colour scale for correlation heatmaps.
Get default colour scale for non-correlation heatmaps.
Get a default size scale for correlation heatmaps.
Get default size scale for non-correlation heatmaps.
Pick out relevant scales and format for mixed layout.
Calculate positions of annotations for heatmap.
Get a Brewer or Viridis colour scale.
Colour scale dispenser.
ggcorrheatmap: Make Flexible 'ggplot2' Correlation Heatmaps
ggcorrhm() for long format data.
Make a correlation heatmap with ggplot2.
gghm() for long format data.
Make a heatmap with ggplot2.
Increment between 1 and 8.
Check if a matrix is square (and require the same row and colnames).
Layout heatmap data for plotting
Make vector for facetting
Make main heatmap part of plot for gghm.
Make legend order depending on what the plot will contain.
Move coordinates of dendrogram to edges of heatmap
Orient a dendrogram.
Prepare annotation parameters and positions
Prepare cell labels in ggcorrhm to pass to gghm
Prepare dendrogram by transforming dendrogram segments.
Prepare facets for gghm_tidy
Prepare facetting columns in the plotting data.
Prepare parameters for mixed layouts.
Prepare default colour scales for annotation.
Prepare scales for heatmap.
Process dendrogram with customisation options
Remove duplicate scales.
Remove triangle from symmetric matrix and return long format data.
Replace default elements in a named list with corresponding elements i...
Scale height of dendrogram.
Scale data rows or columns.
Convert a matrix to long format using row names and column names.
Convert long format matrix to wide.
Calculate correlations and p-values between columns.
Create correlation heatmaps with 'ggplot2' and customise them with flexible annotation and clustering. Symmetric heatmaps can use triangular or mixed layouts, removing redundant information or displaying complementary information in the two halves. There is also support for general heatmaps not displaying correlations.
Useful links