【856】R语言palette查找

发布时间 2023-07-11 08:55:00作者: McDelfino

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()

显示如下: