Checking Built-in Colors In R
In R, we can access a list of 657 named colors using the colors() function.
# View all named colors in R
all_colors <- colors()
print(all_colors)
Output:
[1] "white" "aliceblue" "antiquewhite"
[4] "antiquewhite1" "antiquewhite2" "antiquewhite3"
[7] "antiquewhite4" "aquamarine" "aquamarine1"
[10] "aquamarine2" "aquamarine3" "aquamarine4"
[13] "azure" "azure1" "azure2"
[16] "azure3" "azure4" "beige"
[19] "bisque" "bisque1" "bisque2"
[22] "bisque3" "bisque4" "black"
[25] "blanchedalmond" "blue" "blue1"
[28] "blue2" "blue3" "blue4......................................................................................
Colors In R
In making pictures and graphs with numbers, colors are super important. R Programming Language is a special computer language that helps us do this. It has lots of ways to change colors in our pictures and graphs, making them look cool and easy to understand.