Sometimes a picture is worth a thousand words. To make sure this is true for any figures we create as part of research communication we want to be aware of and accommodate for non-typical vision such as low vision, low contrast vision or color vision deficiency. Individuals with one of these types of vision deficiencies may find it difficult to extract the story and the meaning from a figure or picture if the image does not use accessible color choices. Using symbols or shading texture in addition to color can be one way to help differentiate categories in a graph. Choosing appropriate colors will complement this approach and allow for maximum clarity.
For individuals without a color vision deficiency it can be hard to imagine what graphics look like to those with color vision deficiency. To bridge this gap, computer tools have been developed that simulate the appearance of images to those with specific types of color vision deficiency. A quick internet search for “Color Blindness Accessibility” or “Color Blindness Simulator” should help identify resources for this purpose. While these tools aid in determining whether a choice of color contrasts is accessible or not, they do not provide a list of choices for color palettes that work well for most individuals with and without color vision deficiency. Those palettes are introduced and described elsewhere.
During my research I have come across multiple suggestions for color combinations for color blindness accessible graphing. Below, I have compiled them into R-code as palettes, i.e. vectors of color hexadecimal codes. You should be able to copy and paste the lists or vectors directly and use as a palette in your work.