View source: R/prepare_scales.R
prepare_scales_annot | R Documentation |
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"
)
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. |
List of length two containing lists of row annotation and column annotation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.