ANNOUNCEMENT
Color vision deficiency (CVD), commonly known as colorblindness, affects 1 in 12 men and 1 in 200 women, approximately 300 million people worldwide (
1). Individuals with CVD do not experience complete loss of color vision but have reduced ability to distinguish between different colors. There are three common types of CVD, i.e., deuteranopia, protanopia, and tritanopia. Individuals with deuteranopia (red-green colorblindness) have difficulty distinguishing between shades of red, green, and yellow. Individuals with protanopia (red colorblindness) have diminished ability to distinguish between colors containing red, whereas those with tritanopia have difficulty distinguishing between blues and yellows.
Despite the large numbers of individuals who experience CVD, many scientific figures rely on color to convey information. To ensure that colors in figures are accessible to all, researchers can use colorblind-friendly color palettes and evaluate accessibility with colorblind simulators. There are several CVD-friendly color palettes available (
2–5); however, they are typically limited to 8 to 15 distinct colors or may not be accessible for all forms of CVD. Even with these resources, it can be challenging to apply these schemes to scientific figures. For example, for visualization of microbiome data it is common to represent tens to hundreds of bacterial taxa in one figure, for which the currently available CVD color palettes are insufficient.
To overcome this limitation, we developed the
microshades R package, which provides custom color shading palettes to improve CVD accessibility and data organization. The
microshades package includes two color palettes, namely, microshades_cvd_palettes and microshades_palettes (
Table 1). To construct these palettes, hue (type of color), chroma (colorfulness), and luminance (brightness) were adjusted for optimal visual distinction and CVD accessibility. Each color palette contains six hues with five sequential variations of chroma and luminance per hue, for a total of 30 available colors per palette. All shades have been tested with a CVD simulator, cvdemulator (
3), for deuteranope, protanope, and tritanope accessibility (
Fig. 1A).
In addition to color palettes, the
microshades package contains functions to aid in the complex data visualization common in microbiome studies (
Fig. 1B to
D), including functions to group data by taxonomic ranking. For example, hues correspond to a high-order taxonomic group (e.g., phylum) and shades of each hue can represent subgroups of the taxonomic group (e.g., genus). Subgroup shading is determined by abundance in the data set, with darker shades indicating the most abundant subgroups, and less abundant subgroups are collapsed into an “other” category. There are also functions to aid in data organization, such as vertical and horizontal sorting of the data and restructuring of the plot legends. Contribution plots can also be created, providing greater insight by displaying boxplots, median barplots, or mean barplots for individual taxa.
In summary, the
microshades R package is a visualization tool for microbiome researchers. The package contains two CVD-accessible palettes, along with several organization features. The
microshades package can be used in conjunction with common microbiome R packages, such as phyloseq (
6), to enhance microbiome data visualization.
ACKNOWLEDGMENTS
This work was supported by the NIH under NIDDK award K01 DK116706 (L.K.), NLM award T15LM007088 (E.M.D. and E.T.L.), and the NIH Common Fund and Office of Scientific Workforce Diversity under three linked awards (grants RL5GM118963, TL4GM118965, and UL1GM118964) administered by the NIGMS (E.N. and L.K.).
The content of the manuscript is solely the authors’ responsibility and does not represent the official views of the NIH or any other funding agency.