Learn R Programming

alignfigR (version 0.1.1)

define_palette: 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

Run this code
# NOT RUN {
palette <- define_palette("DNA", c("A", "G", "T"))
palette <- define_palette("protein")
# }

Run the code above in your browser using DataLab