make_col_scheme | R Documentation |
Create new sequence logo color scheme
make_col_scheme(chars = NULL, groups = NULL, cols = NULL, values = NULL,
name = "")
chars |
Vector of one letter characters |
groups |
Vector of groups for letters with same length as chars (optional if cols parameter is provided) |
cols |
Vector of colors with same length as chars (optional if values parameter is provided) |
values |
Vector of numerical values with same length as chars |
name |
Name of color scheme |
# Discrete color scheme examples
cs1 = make_col_scheme(chars=c('A', 'T', 'G', 'C'), groups=c('g1', 'g1', 'g2', 'g2'),
cols=c('red', 'red', 'blue', 'blue'), name='custom1')
cs2 = make_col_scheme(chars=c('A', 'T', 'G', 'C'), cols=c('red', 'red', 'blue', 'blue'),
name='custom2')
# Quantitative color scheme
cs3 = make_col_scheme(chars=c('A', 'T', 'G', 'C'), values=1:4, name='custom3')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.