maColorBar(marray)
maColorBar()所属R语言包:marray
Calibration bar for color images
彩色图像校准栏
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function produces a color image (color bar) which can be used for the legend to another color image obtained from the functions image, maImage, or maImage.func.
此功能产生可用于从功能上得到了传说到另一个彩色图像的彩色图像(彩条)image,maImage或maImage.func。
用法----------Usage----------
maColorBar(x, horizontal=TRUE, col=heat.colors(50), scale=1:length(x), k=10, ...)
参数----------Arguments----------
参数:x
If "numeric", a vector containing the "z" values in the color image, i.e., the values which are represented in the color image. Otherwise, a "character" vector representing colors.
如果“数字”,向量的彩色图像中的“Z”值,即,在彩色图像表示的值。否则,“性格”的向量,代表颜色。
参数:horizontal
If TRUE, the values of x are represented as vertical color strips in the image, else, the values are represented as horizontal color strips.
如果TRUE值x垂直的彩条图像表示,否则,该值水平的彩条代表。
参数:col
Vector of colors such as that generated by rainbow, heat.colors, topo.colors, terrain.colors, or similar functions. In addition to these color palette functions, a new function maPalette was defined to generate color palettes from user supplied low, middle, and high color values.
向量,如rainbow,heat.colors,topo.colors,terrain.colors,或类似的功能产生的颜色。除了这些调色板功能,一个新的功能maPalette被定义为从用户产生的调色板提供了低,中,高色值。
参数:scale
A "numeric" vector specifying the "z" values in the color image. This is used when the argument x is a "character" vector representing color information.
一个“数字”的矢量彩色图像在指定的“Z”值。这是使用时的参数x是一个“字符”向量,代表的颜色信息。
参数:k
Object of class "numeric", for the number of labels displayed on the bar.
对象类的“数字”栏上显示的标签数量。
参数:...
Optional graphical parameters, see par.
可选的图形参数,请参阅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, maImage, maImage.func, maPalette.
image,maImage,maImage.func,maPalette。
举例----------Examples----------
par(mfrow=c(3,1))
Rcol <- maPalette(low="white", high="red", k=10)
Gcol <- maPalette(low="white", high="green", k=50)
RGcol <- maPalette(low="green", high="red", k=100)
maColorBar(Rcol)
maColorBar(Gcol, scale=c(-5,5))
maColorBar(1:50, col=RGcol)
par(mfrow=c(1,3))
x<-seq(-1, 1, by=0.01)
maColorBar(x, col=Gcol, horizontal=FALSE, k=11)
maColorBar(x, col=Gcol, horizontal=FALSE, k=21)
maColorBar(x, col=Gcol, horizontal=FALSE, k=51)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|