R语言中快速生成多个有色差的颜色

 

001、

library(randomcoloR)
palette <- randomColor(count = 54)  #随机生成60种颜色,其实里面有重复的
palette <- distinctColorPalette(54) #差异明显的60种
palette
plot(1:54, pch = 19, cex = 2, col = palette)

 

 

 

posted @ 2025-03-03 09:50  小鲨鱼2018  阅读(67)  评论(0)    收藏  举报