RGBColVec(Heatplus)
RGBColVec()所属R语言包:Heatplus
Alternative color schemes
另类的配色方案
译者:生物统计家园网 机器人LoveR
描述----------Description----------
RGBColVec returns a vector of colors that is equally spaced from red through black to green, suitable for heatmaps.
RGBColVec返回一个同样从红色间隔通过黑绿色,适合用于热图的颜色向量。
RainbowPastel returns a vector of colors like rainbow, but more pastelly.
RainbowPastel返回一个颜色像rainbow的向量,但更pastelly。
用法----------Usage----------
RGBColVec(nrgcols = 12)
RainbowPastel(n, blanche = 200, ...)
参数----------Arguments----------
参数:nrgcols, n
desired number of colors
所需数量的颜色
参数:blanche
the amount of whiteness added; value between 0 and 255
白茫茫的添加量; 0和255之间的值
参数:...
extra arguments to rainbow
额外的参数rainbow
值----------Value----------
A character vector of length nrgcols or n giving the RGB codes for the colors.
特征向量的长度nrgcols或n给的颜色的RGB代码。
作者(S)----------Author(s)----------
<code>RGBColVec</code> is based on function <code>rgcolors.func</code> in package <code>sma</code> by Sandrine Dudoit and Jane Fridlyand.
<code>RGBColVec</code> as documented and <code>RainbowPastel</code> by Alexander Ploner
参见----------See Also----------
heat.colors
heat.colors
举例----------Examples----------
# A Color Wheel[色轮]
pie(rep(1,12), col=RGBColVec(12))
# A color wheel in the original rainbow[一个在原来的彩虹色轮]
pie(rep(1,6), col=rainbow(6))
# Pastel[粉彩]
pie(rep(1,6), col=RainbowPastel(6))
# Less whiteness[少白]
pie(rep(1,6), col=RainbowPastel(6, blanche=127))
# More steps require less whiteness[需要更多的步骤少白]
pie(rep(1,12), col=RainbowPastel(12, blanche=60))
# Test your screen & eyes: any differences?[测试你的屏幕与眼睛:任何分歧?]
pie(rep(1,12), col=RainbowPastel(12, blanche=80))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|