doLegend(Heatplus)
doLegend()所属R语言包:Heatplus
A simple legend
一个简单的传说
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Add a simple legend in form of a color bar to a plot.
添加一个简单的彩条的图形式传说。
用法----------Usage----------
doLegend(breaks, col, side)
参数----------Arguments----------
参数:breaks
a vector of breaks defining a set of intervals for the data
定义数据集的间隔的中断向量
参数:col
a vector of colors corresponding to the intervals.
相应的时间间隔的颜色向量。
参数:side
integer between 1 and 4, indicating on which side of the main plot the legend is supposed to be drawn. Standard interpretation: 1 = below, continuing clock-wise.
1和4之间的整数,表明哪一方的主要图的传说应该是绘制。 =低于标准的解释:1,继续顺时针。
Details
详情----------Details----------
This is an extremely simple way of giving a visual impression of what numerical values correspond to a given color. The actual plot is done via a call to image and axis.
这是一个极其简单的方式,给人一种什么数值对应于一个特定的颜色的视觉印象。调用image和axis通过实际的图做。
值----------Value----------
The locations of the ticks returned by the call to axis
刻度线的位置由调用返回axis
参见----------See Also----------
plot.annHeatmap, niceBreaks, g2r.colors
plot.annHeatmap,niceBreaks,g2r.colors
举例----------Examples----------
## Set up data[#设置数据]
doLegend(1:9, g2r.colors(8), 2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|