ggplot:对于B& W印刷,推荐的调色板也有区别? [英] ggplot: recommended colour palettes also distinguishable for B&W printing?

查看:118
本文介绍了ggplot:对于B& W印刷,推荐的调色板也有区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始为一篇论文制作图表。对于其中一些条形图,我使用了Pastel1调色板(如ggplot2的书中推荐的那样,柔和的颜色比填充区域的饱和效果要好,例如条纹)。

Pastel1的问题至少在于在B& W激光打印机上打印时,颜色难以区分。我不知道读者是否会在屏幕上浏览论文或是在B& W上打印,所以我正在寻找以下任何一种:


  • 如何将散列行添加到诸如Pastel1之类的调色板中(希望散列行也很细微)

  • 调色板容易在眼睛上产生不同的灰色区域,例如对于3-4种不同的颜色,B& W


    当然,我可以通过试验和使用碳粉来找到后者,但也许这已经解决了,我想这是一个普遍的问题。

    谢谢。

    解决方案

    使用 http://colorbrewer2.org/ ,只显示配色方案打印机友好。
    另请参阅 scale_fill_grey



    由于底层网格绘图包中的限制,目前无法使用散列线。


    I've started to produce the charts for a paper. For some of them which are bar charts I've used the "Pastel1" palette (as recommended in the book on ggplot2, pastel colours are better than saturated ones for fill areas, such as bars).

    The problem with Pastel1 at least is that when printed on a B&W laser printer, the colours are indistinguishable. I don't know if the readers will view the paper on screen or will print it on B&W, so I'm looking for either of the following:

    • how to add hash lines to a palette such as Pastel1 (hopefully the hash lines are also subtle)
    • a colour palette easy on the eyes that also produces distinct grey areas for B&W for, say, up to 3-4 different colours.

    Granted, I could find the latter by experimenting and using toner, but perhaps this has already been solved, I suppose it's a common problem. And yes, I did google for this, but didn't find anything pertinent.

    Thank you.

    解决方案

    Use http://colorbrewer2.org/ and only show colour schemes that are printer friendly. Also see scale_fill_grey.

    Currently it's not possible to used hash lines due to a limitation in the underlying grid drawing package.

    这篇关于ggplot:对于B& W印刷,推荐的调色板也有区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆