找回密码
 注册
查看: 376|回复: 0

R语言 shape包 colorlegend()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 01:53:05 | 显示全部楼层 |阅读模式
colorlegend(shape)
colorlegend()所属R语言包:shape

                                         adds a color legend to a plot.
                                         地积增加了传奇的色彩。

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Adds a color legend to a plot.
添加一个传奇的色彩图。


用法----------Usage----------


colorlegend(col = femmecol(100), zlim, zlevels = 5, dz = NULL,
            zval = NULL, log = FALSE, posx = c(0.9, 0.93),
            posy = c(0.05, 0.9), main = NULL, main.cex = 1.0,
            main.col = "black", lab.col = "black",
            digit = 0, left = FALSE, ...)



参数----------Arguments----------

参数:col
color palette to be used; also allowed are two extremes or one value.  
调色板使用;也允许有两个极端,一个值。


参数:zlim
two-valued vector, the minimum and maximum z values.  
2值的矢量,最小和最大的z值。


参数:zlevels
number of z-levels, one value, ignored if dz or zval not equal to NULL.  
数z的水平,一个值,忽略,如果dz或zval不等于NULL“。


参数:dz
increment in legend values, one value; ignored if zval not equal to NULL.  
传说中的值,一个值的增量忽略,如果zval不等于NULL。


参数:zval
a vector of z-values to label legend.  
标签传说z值的向量。


参数:log
logical indicating whether to log transform or not.  
逻辑表明是否记录转换与否。


参数:posx
relative position of left and right edge of color bar on first axis, [0,1].  
彩条的左边缘和右边缘的第一轴线上的相对位置,[0,1]。


参数:posy
relative position on lower and upper edge of colar bar on second axis, [0,1].  
colar条形的下部和上部的边缘的第二轴线上的相对位置上,[0,1]。


参数:main
main title, written above the color bar.  
主标题,上面写的彩条。


参数:main.cex
relative size of main title.  
主标题的相对大小。


参数:main.col
color of main title.  
主标题的颜色。


参数:lab.col
color of labels.  
颜色的标签。


参数:digit
number of significant digits in labels.  
在标签中的重要数字的数量。


参数:left
logical indicating whether to put the labels on the right (TRUE) or on the left (FALSE).  
逻辑表示,是否把标签放在右侧(TRUE)或左侧(FALSE)。


参数:...
arguments passed to R-function text when writing labels.  
参数传递给R-函数的文本写作时的标签。


(作者)----------Author(s)----------



Karline Soetaert <karline.soetaert@nioz.nl>




实例----------Examples----------


emptyplot(main = "colorlegend")
colorlegend(zlim = c(0, 10))
colorlegend(posx = c(0.8, 0.83), col = greycol(100),
            zlim = c(0, 1), digit = 1)
colorlegend(posx = c(0.7, 0.73), left = TRUE, col = rainbow(100),
            zlim = c(0, 10), digit = 1, dz = 2.5)
colorlegend(posx = c(0.5, 0.53),
            col = intpalette(c("red", "yellow", "black"), 100),
            zlim = c(0, 20), zval = c(1, 3, 7, 15))
colorlegend(posy = c(0.0, 0.15), posx = c(0.2, 0.3),
            col = rainbow(100), zlim = c(0, 1),
            zlevels = NULL, main = "rainbow")
colorlegend(posy = c(0.25, 0.4), posx = c(0.2, 0.3),
            zlim = c(0, 1), zlevels = NULL, main = "femmecol")
colorlegend(posy = c(0.5, 0.65), posx = c(0.2, 0.3),
            col = terrain.colors(100), zlim = c(0, 1),
            zlevels = NULL, main = "terrain.colors")
colorlegend(posy = c(0.75, 0.9), posx = c(0.2, 0.3),
            col = heat.colors(100), zlim = c(0, 1),
            zlevels = NULL, main = "heat.colors")

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-22 08:11 , Processed in 0.024009 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表