define_palette {alignfigR}R Documentation

Define color palette.

Description

This function sets up, either using default or user-specified options, the color-coding scheme used to plot sequences.

Usage

define_palette(inpalette, uniques)

Arguments

inpalette

Either a user-specified named-array of colors or flag for default options (dna, rna, protein, random, ...)

uniques

Unique characters found in alignment. Used to create the random color scheme.

Value

Color palette named-array.

Examples

palette <- define_palette("DNA", c("A", "G", "T"))
palette <- define_palette("protein")

[Package alignfigR version 0.1.1 Index]