Learn R Programming

tmaptools (version 1.2)

palette_explorer: Explore color palettes

Description

This interactive tool shows all Color Brewer 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.

Usage

palette_explorer()

Arguments

References

http://www.color-blindness.com/types-of-color-blindness/

See Also

get_brewer_pal, dichromat, RColorBrewer

Examples

Run this code
## Not run: 
# if (require(shiny) && require(shinyjs)) {
#     palette_explorer()
# }
# ## End(Not run)

Run the code above in your browser using DataLab