inst/extData/makeGlasbey.R

library(colorspace)
temp <- as.matrix(read.table("glasbey.txt", sep="\t", header=TRUE))
glasbey <- hex(sRGB(temp/255))
names(glasbey) <- paste("G", 1:32, sep='')
save(glasbey, file="glasbey.rda")

Try the Polychrome package in your browser

Any scripts or data that you put into this service are public.

Polychrome documentation built on May 3, 2022, 9:07 a.m.