prepare_scales_annot: Prepare default colour scales for annotation.

View source: R/prepare_scales.R

prepare_scales_annotR Documentation

Prepare default colour scales for annotation.

Description

Prepares a brewer palette or viridis option for all annotations that don't have any colour scale specified by the user. There are eight options each for brewer (categorical) and viridis (continuous) and they are selected sequentially, going back to the beginning if there are more than eight annotations of each kind.

Usage

prepare_scales_annot(
  scale_order,
  annot_rows_df = NULL,
  annot_cols_df = NULL,
  annot_rows_col = NULL,
  annot_cols_col = NULL,
  na_col = "grey50"
)

Arguments

scale_order

List containing orders of scales as obtained from make_legend_order.

annot_rows_df

Data frame with annotation for rows.

annot_cols_df

Data frame with annotation for columns.

annot_rows_col

List with colour scales for rows.

annot_cols_col

List with colour scales for columns.

na_col

Colour of NA cells.

Value

List of length two containing lists of row annotation and column annotation.


ggcorrheatmap documentation built on Aug. 25, 2025, 1:11 a.m.