colors | R Documentation |
Get the color schemes that are used in the AneuFinder plots.
stateColors(states = c("zero-inflation", paste0(0:10, "-somy"), "total"))
strandColors(strands = c("+", "-"))
breakpointColors(breaktypes = c("CNB", "SCE", "CNB+SCE", "other"))
states |
A character vector with states whose color should be returned. |
strands |
A character vector with strands whose color should be returned. Any combination of |
breaktypes |
A character vector with breakpoint types whose color should be returned. Any combination of |
A character vector with colors.
stateColors
: Colors that are used for the states.
strandColors
: Colors that are used to distinguish strands.
breakpointColors
: Colors that are used for breakpoint types.
## Make a nice pie chart with the AneuFinder state color scheme
statecolors <- stateColors()
pie(rep(1,length(statecolors)), labels=names(statecolors), col=statecolors)
## Make a nice pie chart with the AneuFinder strand color scheme
strandcolors <- strandColors()
pie(rep(1,length(strandcolors)), labels=names(strandcolors), col=strandcolors)
## Make a nice pie chart with the AneuFinder breakpoint-type color scheme
breakpointcolors <- breakpointColors()
pie(rep(1,length(breakpointcolors)), labels=names(breakpointcolors), col=breakpointcolors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.