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.
prepare_scales_annot(
scale_order,
annot_rows_df = NULL,
annot_cols_df = NULL,
annot_rows_col = NULL,
annot_cols_col = NULL,
na_col = "grey50"
)
List of length two containing lists of row annotation and column annotation.
List containing orders of scales as obtained from make_legend_order.
Data frame with annotation for rows.
Data frame with annotation for columns.
List with colour scales for rows.
List with colour scales for columns.