Skip to contents

This function takes a vector of signature 'types' and selects an appropriate color palette. It checks if the types match predefined palettes and returns the matching palette or a default palette pal_set2() if no exact match is found.

Usage

auto_palette(types, default = pal_set2(), verbose = TRUE)

Arguments

types

A character vector of types e.g. from a sigverse signature 'type' column.

default

The default color palette to use if no exact match is found.

verbose

verbose (flag)

Value

A color palette (named vector where names are types and values are colours).

Examples

if (FALSE) # Example usage:
auto_palette(c("T>G", "T>G"))
 # \dontrun{}