addScheme: Add a custom coloring or grouping scheme.

Description Usage Arguments Value Examples

View source: R/testDAU.R

Description

Add a custom coloring or grouping scheme for ungrouped or grouped amino acids as desired.

Usage

1
2
3
4
5
addScheme(
  color = vector("character"),
  symbol = vector("character"),
  group = NULL
)

Arguments

color

A named vector of character. This vector specifies different colors for visualizing the different amino acids or amino acid groups.

symbol

A named vector of character. This vector specifies the different symbols for visualizing the different amino acids or amino acid groups.

group

A list or NULL. If only coloring amino acids of similar property is desired, set group to NULL; otherwise group should be a list with same names as those of color and symbol.

Value

Add the custom coloring or grouping scheme to the environment cacheEnv.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Add a grouping scheme based on the BLOSUM50 level 3 
color = c(LVIMC = "#33FF00", AGSTP = "#CCFF00",
         FYW = '#00FF66', EDNQKRH = "#FF0066")
symbol = c(LVIMC = "L", AGSTP = "A", FYW = "F", EDNQKRH = "E")
group = list(
   LVIMC = c("L", "V", "I", "M", "C"), 
   AGSTP = c("A", "G", "S", "T", "P"),
   FYW = c("F", "Y", "W"),
   EDNQKRH = c("E", "D", "N", "Q", "K", "R", "H"))
addScheme(color = color, symbol = symbol, group = group) 

haibol2016/dagLogo documentation built on June 28, 2020, 1:31 a.m.