g2r.colors(Heatplus)
g2r.colors()所属R语言包:Heatplus
Palette from green to red via black
从绿色到调色板通过黑色红色
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns a color vector of the requested length, ranging from pure red to pure green via slighlty tinted black.
返回通过slighlty染成黑颜色矢量的请求的长度,范围从纯红,纯绿。
用法----------Usage----------
g2r.colors(n = 12, min.tinge = 0.33)
参数----------Arguments----------
参数:n
the number of requested colors
要求的颜色数目
参数:min.tinge
the proportion of red/green added to black to make it recognizably green or red
红色/绿色的比例添加到黑色,使其公认的绿色或红色
Details
详情----------Details----------
If n is even, the colors range from pure green to green-tinted black to red-tinted black to pure red. If n is odd, the colors range from pure red to pure green, with full black for the median class.
n如果甚至,颜色范围从纯绿色绿色有色黑色红色有色黑色纯红色。如果n是奇数,颜色范围从纯红色,纯绿色,全黑的中位数类。
值----------Value----------
A vector of (RGB-) colors of the specified length
一个矢量(RGB的)颜色指定的长度
参见----------See Also----------
breakColors
breakColors
举例----------Examples----------
## Even number: residual tint shows left/right of center[#偶数:剩余色调显示左/右的中心]
co_even = g2r.colors(10)
co_even
doLegend(1:11, co_even, 1)
## Odd number: central class all black[#奇数:中央级的全黑]
co_odd = g2r.colors(9)
co_odd
doLegend(1:10, co_odd, 1)
## Lighter tint in the middle[#打火机在中间色调]
co_light = g2r.colors(10, min.tinge=0.50)
co_light
doLegend(1:11, co_light, 1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|