ref: palette_explorer: Explore color palettes
palette_explorer()
starts an interactive tool shows all Color Brewer and viridis palettes, where the number of colors can be adjusted as well as the constrast range. Categorical (qualitative) palettes can be stretched when the number of colors exceeds the number of palette colors. Output code needed to get the desired color values is generated. Finally, all colors can be tested for color blindness. The data.frame tmap.pal.info
is similar to brewer.pal.info
, but extended with the color palettes from viridis.
安装 shinyjs
install.packages('shinyjs')
运行下面函数
tmaptools::palette_explorer()
显示如下:
标签:856,explorer,color,palette,number,colors,查找,palettes From: https://www.cnblogs.com/alex-bn-lee/p/17542845.html