blindFriendlyColors: Blind friendly colors.

blindFriendlyColorsR Documentation

Blind friendly colors.

Description

Returns RGB values of blind-friendly colors.

Usage

blindFriendlyColors(names = TRUE)

Arguments

names

if TRUE, the returned vector will be named

Details

Blind-friendly colors were taken from the Nature Methods Point of view (see the reference below). The colors form a qualitative palette.

Value

a vector holding text rgb values of 8 blind-friendly colors.

Author(s)

Tomas Sieger

References

Wong, Bang: Points of view: Color blindness, Nature Methods 8 (6) June 2011, 10.1038/nmeth.1618.

Chromatic vision simulator showing how people suffering from protanopia, deuteranopia and tritanopia perceive colors: http://asada.tukusi.ne.jp/webCVS/

Examples

# list color names
print(names(bfc()))

# direct use of a specific color
print(bfc()["Orange"])

# show all colors
x<-bfc()
tmp<-rev(seq(along=names(x)))
  # needed to let pkgdonw find graphics::plot():
  require(graphics)
plot(c(.8,1.3),c(0,length(x)+1),ty='n',frame=FALSE,xaxt='n',yaxt='n',xlab='',ylab='')
points(rep(1,length(x)),tmp,pch=19,cex=6,col=x)
text(rep(1.05,length(x)),tmp,names(x),adj=0)

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.