Displaying 2 results from an estimated 2 matches for "protanopia".
2009 Sep 28
2
dichromat, regexp, and grid objects
Dear list,
The dichromat package defines a dichromat function which "Collapses
red-green color distinctions to approximate the effect of the two
common forms of red-green colour blindness, protanopia and
deuteranopia."
library(dichromat)
library(grid)
colorStrip <-
function (colors = 1:3, draw = TRUE)
{
x <- seq(0, 1 - 1/length(colors), length = length(colors))
y <- rep(0.5, length(colors))
my.grob <- grid.rect(x = unit(x, "npc"), y = unit(y, "npc"...
2011 Nov 02
3
palettes for the color-blind
Everyone,
I'm working with scatter plots with different colored symbols (via
lattice). I'm currently using these colors for points and lines:
col1 <- c(rgb(1, 0, 0), rgb(0, 0, 1),
rgb(0, 1, 0),
rgb(0.55482458, 0.40350876, 0.04166666),
rgb(0, 0, 0))
plot(seq(along = col1), pch = 16, col = col1, cex = 1.5)
I'm also using these with transparency (alpha