getCytobandColors: getCytobandColors

Description Usage Arguments Details Value See Also Examples

View source: R/getCytobandColors.R

Description

Returns a named character vector with the colors of associated with the cytoband names

Usage

1
getCytobandColors(color.table=NULL, color.schema=c("circos", "biovizbase", "only.centromeres"))

Arguments

color.table

(named character vector) if present, it's returned as-is. Useful to specify your own color.tables.

color.schema

(character) The name of the color schema to use: circos, biovizBase, only.centromeres (everything in gray, except for centromeres in red). (defaults to circos)

Details

The function returns a named character vector with the colors of associated with the cytoband names. Two color schemas are available: circos (which copies the colors used by Circos) and biovizbase (that gets the cytoband colors from the biovizBase Bioconductor package). If a color.table is given, it is returned untouched.

Value

a named character vector with the colors associated to each cytoband name

See Also

plotKaryotype, kpAddCytobands

Examples

1
2
3
4
 
getCytobandColors()
getCytobandColors(color.schema="biovizbase")
 

karyoploteR documentation built on Nov. 8, 2020, 5:52 p.m.