ggcorrheatmap0.3.0 package

Make Flexible 'ggplot2' Correlation Heatmaps

add_annotation

Add annotations to ggplot heatmap

add_dendrogram

Add dendrogram to ggplot object.

add_diag_names

Add diagonal names to heatmap.

add_mixed_layout

Add a layout column to long format data for mixed layouts.

add_split_diag

Draw triangles in the diagonal to split the it between the two triangl...

apply_dendextend

Successively apply dendextend functions to a dendrogram.

check_annot_df

Check names of annotation

check_annot_names_deprecated

Check annotation name parameters for deprecated usage.

check_cell_labels

Check cell labels if they are ok.

check_dendrogram_pos

Check that dendrograms are positioned correctly

check_layout

Check that layout and mode are correct

check_logical

Check (supposed) logical values.

check_numeric

Check input numeric arguments for class and length.

cluster_data

Cluster data using hierarchical clustering or use provided clustering.

cor_long

Make a correlation matrix from long format data.

default_col_scale_corr

Get a default colour scale for correlation heatmaps.

default_col_scale

Get default colour scale for non-correlation heatmaps.

default_size_scale_corr

Get a default size scale for correlation heatmaps.

default_size_scale

Get default size scale for non-correlation heatmaps.

extract_scales

Pick out relevant scales and format for mixed layout.

get_annotation_pos

Calculate positions of annotations for heatmap.

get_colour_scale

Get a Brewer or Viridis colour scale.

get_default_annot_scale

Colour scale dispenser.

ggcorrheatmap-package

ggcorrheatmap: Make Flexible 'ggplot2' Correlation Heatmaps

ggcorrhm_tidy

ggcorrhm() for long format data.

ggcorrhm

Make a correlation heatmap with ggplot2.

gghm_tidy

gghm() for long format data.

gghm

Make a heatmap with ggplot2.

increment1to8

Increment between 1 and 8.

isSquare

Check if a matrix is square (and require the same row and colnames).

layout_hm

Layout heatmap data for plotting

make_facet_vector

Make vector for facetting

make_heatmap

Make main heatmap part of plot for gghm.

make_legend_order

Make legend order depending on what the plot will contain.

move_dendrogram

Move coordinates of dendrogram to edges of heatmap

orient_dendrogram

Orient a dendrogram.

prepare_annotation

Prepare annotation parameters and positions

prepare_cell_labels

Prepare cell labels in ggcorrhm to pass to gghm

prepare_dendrogram

Prepare dendrogram by transforming dendrogram segments.

prepare_facets_tidy

Prepare facets for gghm_tidy

prepare_facets

Prepare facetting columns in the plotting data.

prepare_mixed_param

Prepare parameters for mixed layouts.

prepare_scales_annot

Prepare default colour scales for annotation.

prepare_scales

Prepare scales for heatmap.

process_dendrogram

Process dendrogram with customisation options

remove_duplicate_scales

Remove duplicate scales.

remove_triangle

Remove triangle from symmetric matrix and return long format data.

replace_default

Replace default elements in a named list with corresponding elements i...

scale_dendrogram

Scale height of dendrogram.

scale_mat

Scale data rows or columns.

shape_mat_long

Convert a matrix to long format using row names and column names.

shape_mat_wide

Convert long format matrix to wide.

test_cor

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.

  • Maintainer: Leo Dahl
  • License: MIT + file LICENSE
  • Last published: 2025-10-05