Learn R Programming

ggcorrheatmap (version 0.1.2)

prepare_scales_annot: 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"
)

Value

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

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.