Example: colors

Other data that’s in a network format:

In this example the luv_colours() function allows for all built-in colors() translated into Luv colour space, a data frame with 657 observations and 4 variables: luv_colours

luv_colours <- as.data.frame(convertColor(t(col2rgb(colors())),
                                          "sRGB", "Luv"))
luv_colours$col <- colors()
head(luv_colours)
##          L             u         v           col
## 1 9341.570 -3.370649e-12    0.0000         white
## 2 9100.962 -4.749170e+02 -635.3502     aliceblue
## 3 8809.518  1.008865e+03 1668.0042  antiquewhite
## 4 8935.225  1.065698e+03 1674.5948 antiquewhite1
## 5 8452.499  1.014911e+03 1609.5923 antiquewhite2
## 6 7498.378  9.029892e+02 1401.7026 antiquewhite3