Learn R Programming

genoPlotR (version 0.8.11)

artemisColors: Artemis Colors

Description

Returns a data frame with the standard artemis colors.

Usage

artemisColors()

Arguments

Value

A data.frame with the following columns: n, names, colors, r, g and g. The 3 first columns give the Artemis color number, its name, and its equivalent in R. The 3 last give the r, g and b values.

References

Artemis website: http://www.sanger.ac.uk/resources/software/artemis/

Examples

Run this code
# NOT RUN {
artCol <- artemisColors()
plot(rep(1, nrow(artCol)), artCol$n, xlim=c(1, 2), type="n")
text(rep(1, nrow(artCol)), artCol$n, labels=artCol$n, col=artCol$colors)
text(rep(1, nrow(artCol)), artCol$n, labels=artCol$names, col=artCol$colors,
     pos=4, offset=1)

# }

Run the code above in your browser using DataLab