maPalette(marray)
maPalette()所属R语言包:marray
Microarray color palette
芯片调色板
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function returns a vector of color names corresponding to a range of colors specified in the arguments.
这个函数返回一个相应的参数中指定的颜色范围的颜色名称的向量。
用法----------Usage----------
maPalette(low = "white", high = c("green", "red"), mid=NULL, k =50)
参数----------Arguments----------
参数:low
Color for the lower end of the color palette, specified using any of the three kinds of R colors, i.e., either a color name (an element of colors), a hexadecimal string of the form "#rrggbb", or an integer i meaning palette()[i].
下端调色板的颜色,指定使用任何R的颜色,即三种,无论是色彩的名称(colors的元素),十六进制字符串的形式"#rrggbb"或整数i意思palette()[i]。
参数:high
Color for the upper end of the color palette, specified using any of the three kinds of R colors, i.e., either a color name (an element of colors), a hexadecimal string of the form "#rrggbb", or an integer i meaning palette()[i].
调色板上的颜色,指定使用任何R的颜色,即3种,无论是色彩的名称(colors的元素),十六进制字符串的形式"#rrggbb"或整数i意思palette()[i]。
参数:mid
Color for the middle portion of the color palette, specified using any of the three kinds of R colors, i.e., either a color name (an element of colors), a hexadecimal string of the form "#rrggbb", or an integer i meaning palette()[i].
颜色调色板指定的中间部分,使用任何R的颜色,3种,即,无论是颜色的名称,十六进制字符串的形式colors,("#rrggbb"的元素)或整数i意思palette()[i]。
参数:k
Number of colors in the palette.
调色板中的颜色数。
值----------Value----------
A "character" vector of color names. This can be used to create a user-defined color palette for subsequent graphics by palette, in a col= specification in graphics functions, or in par.
一个“字符”向量的颜色名称。这可以用来创建用户定义的后续图形的颜色由palettecol=图形功能的规范,或在par调色板。
作者(S)----------Author(s)----------
Sandrine Dudoit, <a href="http://www.stat.berkeley.edu/~sandrine">http://www.stat.berkeley.edu/~sandrine</a>, Yee Hwa (Jean) Yang.
参考文献----------References----------
参见----------See Also----------
image, maColorBar, maImage, maImage.func.
image,maColorBar,maImage,maImage.func。
举例----------Examples----------
par(mfrow=c(1,4))
pal <- maPalette(low="red", high="green")
maColorBar(seq(-2,2, 0.2), col=pal, horizontal=FALSE, k=21)
pal <- maPalette(low="red", high="green", mid="yellow")
maColorBar(seq(-2,2, 0.2), col=pal, horizontal=FALSE, k=21)
pal <- maPalette()
maColorBar(seq(-2,2, 0.2), col=pal, horizontal=FALSE, k=21)
pal <- maPalette(low="purple", high="purple",mid="white")
maColorBar(seq(-2,2, 0.2), col=pal, horizontal=FALSE, k=21)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|