What are the colors of colors () in R language?
This article mainly introduces what are the colors of colors () in R language. It is very detailed and has a certain reference value. Friends who are interested must finish it!
The problem of color matching is often involved in R drawing. 657 color names of R can be obtained by colors (). Head (colors (), 20) [1] "white", "aliceblue", "antiquewhite", "antiquewhite1" [5] "antiquewhite2"...
The problem of color matching is often involved in R drawing. 657 color names of R can be obtained by colors ().
Head (colors () 20) [1] "white", "aliceblue", "antiquewhite", "antiquewhite1" [5], "antiquewhite2", "antiquewhite3", "antiquewhite4", "aquamarine" [9], "aquamarine1", "aquamarine2", "aquamarine3", "aquamarine4" [13], "azure", "azure1", "azure2", "azure3" [17] "azure4"beige" "bisque"bisque1"
The specific color of each color name can be displayed by drawing.
Pdf (file = "RColors.pdf", height = 20jiao width = 30) par (mar=c) plot (0Let0, type = "n", xlim = c (0,1), ylim = c (0,1), axes = FALSE, xlab = ", ylab =") line=30col=22rect (rep ((0: (col-1) / col), line), sort (rep ((0: (line-1) / line), col), decreasing=T), rep (1:col/col), line) Sort (rep ((1:line/line), col), decreasing=T), border = "light gray", col=colors () [seq (1 ~ (col-1) / col)]) text (rep ((0: (col-1) / col), line) + 0.02, sort (rep ((0: (line-1) / line), col), decreasing=T) + 0.015, colors () [seq (1) lineweight)] Cex=0.9) dev.off () these are all the contents of the article "what are the colors of colors () in R language?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!