Go to TogaWare.com Home Page. Data Science Desktop Survival Guide
by Graham Williams
Duck Duck Go

Colour Names

20200608

\includegraphics[width=0.8\textwidth]{figures/onepager/graphics:colors_plot_fig-1}

R provides a collection of predefined named colours as returned by grDevices::colours():

length(colours())
## [1] 657

colours() %>% sample(12)
##  [1] "royalblue4"    "navajowhite"   "snow1"         "grey1"        
##  [5] "gray93"        "turquoise3"    "lightseagreen" "grey24"       
##  [9] "snow2"         "grey94"        "lemonchiffon"  "grey29"

Colours can be selected using epitools::colors.plot() with locator=TRUE to display a plot containing all of the named colours. Multiple clicks with the left mouse button on colours (we hear a beep for each click) will return the colour names.

as.character(colors.plot(locator=TRUE)$color.names)


Support further development by purchasing the PDF version of the book.
Other online resources include the GNU/Linux Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 2000-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.