Shows colors in a plot with different types of simulated color blindness.
Arguments
- x
A
character
vector of colors.
See also
Other diagnostic tools:
compare()
,
convert()
,
plot.color_scheme()
,
plot_map()
,
plot_scheme()
,
plot_tiles()
Examples
# Trichromat
pal <- colour("bright")
plot_scheme(pal(7))
# Deuteranopia
deu <- convert(pal, mode = "deuteranopia")
plot_scheme(deu(7))
# Protanopia
pro <- convert(pal, mode = "protanopia")
plot_scheme(pro(7))
# Tritanopia
tri <- convert(pal, mode = "tritanopia")
plot_scheme(tri(7))
# Achromatopsia
ach <- convert(pal, mode = "achromatopsia")
plot_scheme(ach(7))
## Plot simulated color blindness
plot_scheme_colorblind(pal(7))