R语言

当我们所参考的颜色版颜色数目有限时候该这么解决

2018-11-15  本文已影响6人  热衷组培的二货潜

首先最重要的参考链接:

Warning messages:
1: In brewer.pal(14, "Purples") :
  n too large, allowed maximum for palette Purples is 9
Returning the palette you asked for with that many colors

2: In brewer.pal(14, "Purples") :
  n too large, allowed maximum for palette Purples is 9
Returning the palette you asked for with that many colors

`解决方案

colourCount = length(unique(HA_FR$V1))
getPalette = colorRampPalette(brewer.pal(10, "Spectral")) #"Paired",Spectral
image.png image.png image.png image.png image.png
上一篇下一篇

猜你喜欢

热点阅读