通用色彩设计 Color Universal Design (CUD)

http://jfly.iam.u-tokyo.ac.jp/color/#pdf
http://www.cookbook-r.com/Graphs/Colors_(ggplot2)/#a-colorblind-friendly-palette

绘制图形如何选择美观和友好的颜色模板?

参考上文,绘图时既要兼顾色盲和非色盲者,又能通过不同的颜色清晰地表现图形


image.png

针对色盲优化的色彩模板 A colorblind-friendly palette

Grey

Black
# The palette with grey:
cbPalette <- c("#999999", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")

# The palette with black:
cbbPalette <- c("#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")

# To use for fills, add
  scale_fill_manual(values=cbPalette)

# To use for line and point colors, add
  scale_colour_manual(values=cbPalette)

你可能感兴趣的:(通用色彩设计 Color Universal Design (CUD))