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

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

[复制链接]
发表于 2012-9-30 00:50:57 | 显示全部楼层 |阅读模式
makeImap(sendplot)
makeImap()所属R语言包:sendplot

                                        Adds Interactive Information to 'Splot' Object
                                         添加到的“Splot”对象互动信息

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

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

The makeImap function will add all information needed to make a given figure in a Splot Object interactive. This function may
makeImap功能将添加所有需要的信息,使一个给定的数字在一个Splot的对象互动。此功能可能


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


makeImap(Splot,
         figure=1,
         xy.type=NA,
         x.pos,
         y.pos,
         x.right.pos=NA,
         y.bottom.pos=NA,
         spot.radius = 5,
         x.labels=NA,
         y.labels=NA,
         xy.labels=NA,
         x.links=NA,
         y.links=NA,
         xy.links=NA,
         asLinks=NA,
         x.images=NA,
         y.images=NA,
         xy.images=NA,
         sep.chr=":",
         font.type="Helvetica",
         font.color="black",
         font.size="12",     
         bg.color="#D6E3F6",
         fname.root="Splot",
         dir="./",
         automap.method="mode",
         bb.clr=NA,
         bb.cex=2,
         returnVl=TRUE,
         saveFlag=FALSE,
         saveName="Splot.RData",
         cleanDir=TRUE)



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

参数:Splot
An Object of the class Splot
一个对象的类Splot


参数:figure
Indicates which plot figure data corresponds to; this matches the numeric indication in the layout matrix.
表示的曲线图数字数据对应,这相匹配的数字表示在布局矩阵。


参数:xy.type
Indication of how the xpos and ypos values should be treated. Current options are "points", "image.midpoints", "image.boundaries", "image.box", "circle", "rect", and "poly". See details or vignette.
xpos和ypos值应如何处理的指示。目前的选项是“点”,“image.midpoints”中,“image.boundaries”,“image.box”,“圆”,“矩形”,“聚”。了解详情或小插曲。


参数:x.pos
numeric vector of x values for interactive points. If xy.type is "rect", a numeric vector of the x.left position of rectangle[s].
数字向量的互动点的x值。如果xy.type是“正确的”,一个数值向量的x.left位置的矩形[S]。


参数:y.pos
numeric vector of y values for interactive points. If xy.type is "rect", a numeric vector of the y.top position of rectangle[s]
数字向量的互动点的y值。 ,如果xy.type是“正确的”,一个数值向量的y.top的位置为矩形[s]


参数:x.right.pos
If xy.type is "rect", a numeric vector of the x.right position of rectangle[s]
,如果xy.type是“正确的”,一个数值向量的x.right的位置为矩形[s]


参数:y.bottom.pos
If xy.type is "rect", a numeric vector of the y.bottom position of rectangle[s]
,如果xy.type是“正确的”,一个数值向量的y.bottom位置的矩形[第]


参数:spot.radius
radius of circle in pixels indicating area that will be interactive around the center of graphed points.used when xy.type is "points", "image.midpoints","image.boundaries", or "circle"
圆的半径以像素为单位显示区域,围绕中心,这将是互动的绘制points.used当xy.type是“点”,的“image.midpoints”中,“image.boundaries”,或“圆”


参数:x.labels
data frame of n x m which contains values relating to the xpos. This information is displayed in the interactive plot window. See details or vignette
数据框包含价值的XPOS的NXM这。此信息显示在交互式绘图窗口。了解详情或小插曲


参数:y.labels
data frame of n x m which contains values relating to the ypos. This information is displayed in the interactive plot window. See details or vignette
数据框,的的NXM其中包含值有关的ypos。此信息显示在交互式绘图窗口。了解详情或小插曲


参数:xy.labels
list of matricies. All matricies should be of n x m. This information is displayed in the interactive plot window. See details or vignette
列表的matricies。 ,所有matricies应该是N×M的。此信息显示在交互式绘图窗口。了解详情或小插曲


参数:x.links
data frame of n x m which contains web addresses for links relating to the xpos. This information is displayed as hyperlinks in the interactive plot window. See details or vignette
数据框NXM为链接有关的XPOS的包含网络地址。此信息显示作为交互式绘图窗口中的超链接。了解详情或小插曲


参数:y.links
data frame of n x m which contains web addresses for links relating to the ypos. This information is displayed as hyperlinks in the interactive plot window. See details or vignette
数据框NXM,其中包含对与ypos有关的链接的网页地址。此信息显示作为交互式绘图窗口中的超链接。了解详情或小插曲


参数:xy.links
list of matricies. All matricies should be of n x m. This information is displayed in the interactive plot window as hyperlinks. The values in these matricies should be complete web address. See details or vignette
列表的matricies。 ,所有matricies应该是N×M的。为超链接的互动式绘图窗口中显示此信息。的在这些matricies值应该是完整的Web地址。了解详情或小插曲


参数:asLinks
contains complete web address for points that should be treated as hyperlinks. See details or vignette
包含完整的网络地址应被视为超链接点。了解详情或小插曲


参数:x.images
data frame of n x m which contains paths to images relating to the xpos.  n should be the length of the xpos argument if xy.type is "image.midpoints" and length of xpos - 1 if xy.type is "image.boundaries" or "image.box". m columns contains information regarding sample. This information is displayed as images in the interactive plot window.
数据框的NXM其中包含的图像有关的XPOS路径。 n应的长度的XPOS参数,如果xy.type中是“image.midpoints”和长度XPOS  -  1,如果xy.type是的“image.boundaries”或“image.box”。 m列包含有关样品的信息。此信息显示作为交互式绘图窗口中的图像。


参数:y.images
data frame of n x m which contains paths to images relating to the ypos.  n should be the length of the ypos argument if xy.type is "image.midpoints" and length of ypos - 1 if xy.type is "image.boundaries" or "image.box". m columns contains information regarding sample. This information is displayed as images in the interactive plot window.
数据框的NXM路径其中包含的图像有关的ypos。 n应的长度的ypos参数,如果xy.type中是“image.midpoints”和长度ypos  -  1,如果xy.type是的“image.boundaries”或“image.box”。 m列包含有关样品的信息。此信息显示作为交互式绘图窗口中的图像。


参数:xy.images
list of matricies. All matricies should be of n x m where n is the length of y and m is the length of x when xy.type is "image.midpoint". All matricies should be of n x m where n is the length of y -1 and m is the length of x - 1 when xy.type is "image.boundaries" or "image.box". This information is displayed in the interactive plot window as images. The values in these matricies should be complete paths to images
列表的matricies。其中n是y的长度,m是x的长度当xy.type是“image.midpoint”时,所有matricies应该是NXM。其中n是长度的y -1和m是长度x  -  1当xy.type中是“image.boundaries”或“image.box”时,是所有matricies应NXM。此信息将显示在图像的互动式绘图窗口。本在这些matricies值应该是完整的路径,图像


参数:sep.chr
seperation character in tool tip that distinguishes value from indicator. If a single value, duplicated for all. It may be a vector of values corresponding to each tooltip entry.
从指标区分价值的工具提示的分离字符。如果有一个值,重复所有。它可能是一个对应于每个工具提示条目的值的矢量。


参数:font.type
font type for tool-tip. Currently support fonts are Arial, Helvetica,and sans-serif
工具提示的字体类型。目前支持的字体是宋体,黑体,sans-serif字体


参数:font.color
font color for tool-tip
字体颜色刀尖


参数:font.size
font size in tool-tip
在工具提示的字体大小


参数:bg.color
background color of tool-tip
刀尖的背景颜色


参数:fname.root
Base name to use for .png file name
碱基要使用的名称。png文件名


参数:dir
directory path to where files should be created
应建立文件的目录路径


参数:automap.method
Method to detect upper and lower bounds. Current options are "mode" or "median"
方法检测上限和下限。目前的选项是“模式”或“中位数”


参数:bb.clr
vector of possible color choices for automatic detection bound point. see details or vignette
矢量自动检测结合点的颜色可供选择。详情请参阅或小插曲


参数:bb.cex
Size of automatic detection bound point. see details or vignette
大小自动检测结合点。详情请参阅或小插曲


参数:returnVl
Should Splot object be returned
如果Splot对象返回


参数:saveFlag
Should Splot object be saved
如果Splot对象被保存


参数:saveName
If saveFlag, path file name to save object
,如果saveFlag,路径文件名保存对象


参数:cleanDir
logical indicating if the intermediate files generated by the application should be deleted. The files deleted are of no consequence to the user; they are needed to identify correct mapping
逻辑如果应用程序生成的中间文件被删除。删除的文件是没有结果的用户,他们需要确定正确的映射


Details

详细信息----------Details----------

Users are encouraged to see vignette for further details and several examples.    Two of the most common reasons for automap failing to detect bounding points concerns the color of 'phantom' boundings points with the color of the graphs, and the figure regions/resize value. If the 'phantom' point color is the same as the color used in that area of the graph, a difference will not be recorded. The point color is determined by bb.clr. By default, if bb.clr is left as NA, we try the following colors: blue, red, black, white, green. If the size of the plotting region is small, and therefore the point size is small, or if the resize value is very large, the difference of color for a single point will not register. The point size does not equate to a pixel. In this case the user may try increasing the size of the 'phantom' points added through the bb.cex argument.    xytype refers to how the x.pos and y.pos are treated. The possible options are "points", "image.midpoints", "image.boundaries", "image.box", "circle", "rect", and "poly". "Points","image.midpoints", and "circle" are handled the same. They assume the user is passing in x.pos and y.pos locations for a circle/point. image.midpoints is slightly different only in that it assumes the points refer to the center of regions in an image. The html image map will be a "circle". x.pos and y.pos will be the same length. "image.boundaries" assumes the x.pos and y.pos locations are referring to an image. The x.pos and y.pos locations are the boundaries of the regions, in other words, they are indications of x-axis and y-axis grid lines. The function will automatically calculate midpoints of the region and continues as if image.midpoints.  "image.box" assumes x.pos and y.pos locations are referring to an image. The x.pos and y.pos locations are the boundaries of the regions,in other words, they are indications of x-axis and y-axis grid lines. The function calculates the boundaries of each rectangular image region to make interactive. The html image map will be a "rect".   "rect" assumes the interactive regions are rectangular regions. x.pos refers to the left x coordinate[s] of the rectangular region[s]. y.pos refers to the top y coordinates[s] of the rectangular region[s]. When xy.type is "rect", x.right.pos and y.bottom.pos must also be specified indicating the right x and bottom y coordinate[s] respectively. x.pos, y.pos, x.right.pos, and  y.bottom.pos will all be the same length. The html image map will be a "rect". "poly" assumes that one, and only one interactive polygon region is being added. The x.pos and y.pos therefore are the x and y vertices locations. The html image map will be a "poly".      The dimensions of x.lables, y.labels, xy.labels, x.links, y.links, xy.links, and asLinks will depend on xy.type. If xy.type is "points","circle",or "rect" x.labels, y.lables, x.links, and y.links will have the dimensions n by m where n is equal to the length of x.pos. asLinks will also be of length x.pos, or a single value that will be repeated. xy.labels and xy.links will be a list of matricies where each matrix is also n by m where n is equal to the length of x.pos. If xy.type is "image.midpoints" the following is true. x.labels and x.links should be n by m where n is equal to the length of x.pos, just as y.lables and y.links will be of length y.pos. xy.lables and xy.links will be lists of n by m matricies where n is the length of y.pos and m is the length of x.pos. asLinks can be of length x.pos, y.pos, (x.pos*y.pos), or 1. If xy.type is "image.boundaries" or "image.box" are very similar to "image.midpoints". Instead of length x.pos and y.pos the length is x.pos-1 and y.pos-1. If xy.type is "poly", x.lables, y.lables, x.links, y.links, and the matricies in xy.lables and xy.links are all 1 by m.  asLinks is a single values.   
我们鼓励用户看到进一步的细节与几个例子的小插曲。无法检测到的边界点自动图的最常见的原因有两个关于幻影“boundings,点的颜色的颜色的图形,而这个数字区域/调整值。如果为“虚拟”点的颜色的差的曲线图在该领域使用的颜色是相同的,将不会被记录。点的颜色是由bb.clr。默认情况下,如果bb.clr离开NA,我们尝试以下颜色:蓝色,红色,黑色,白色,绿色。如果绘图区域的大小是小的,因此,点的大小是小的,或如果调整大小的值非常大,为单点的颜色的差异不会注册。并不等同于一个像素点大小。在这种情况下,用户可能会尝试增加“虚拟”添加通过bb.cex参数的大小。 xytype是指到被视为的x.pos和y.pos。可能的选项是“点”,“image.midpoints”中,“image.boundaries”,“image.box”,“圆”,“矩形”,“聚”。 “点”,的“image.midpoints”和“圈子”的处理方式相同。他们假设用户通过一个圆/的x.pos和y.pos位置。 image.midpoints是略有不同的,仅在该假定的控制点是指在图像中的中心区域。 HTML图像图将是一个“圈子”。 x.pos和y.pos将是相同的长度。 “image.boundaries”假定的x.pos和y.pos位置是指到一个图像。的x.pos和y.pos位置的区域的边界,换句话说,它们的x轴和y轴的网格线的适应症。该功能将自动计算该区域的中点,并继续,如果image.midpoints。 “image.box”假定x.pos和y.pos位置被参照的图像。的x.pos和y.pos位置的区域的边界,换句话说,它们的x轴和y轴的网格线的适应症。该函数计算每个矩形图像区域的边界,使交互式的。 HTML图像图将是一个“正确的”。 “正确的”假设的的交互式区域是矩形区域。 x.pos是指左边的矩形区域的x坐标[秒] [秒]。 y.pos是指最佳的y坐标的矩形区域[秒] [秒]。当xy.type是“正确的”,还必须指定x.right.pos和y.bottom.pos [S]分别表示合适的x和底部的y坐标。 x.pos,y.pos,x.right.pos和y.bottom.pos都将是相同的长度。 HTML图像图将是一个“正确的”。 “聚”假定一个,只有一个交互式的多边形区域将被添加。因此,的x.pos和y.pos是x和y的顶点位置。 HTML图像图将是一个“聚”。尺寸的x.lables,y.labels,xy.labels,x.links,y.links,xy.links,和asLinks,将取决于xy.type。 ,如果xy.type是“点”,“圆”,或“正确”x.labels,y.lables,x.links,并y.links的尺寸为n×m,其中n是平等的长度x.pos。 asLinks也将是的长度x.pos,或一个单一的值,该值将被重复。 xy.labels和xy.links将是一个列表,其中每个矩阵也matricies n的m,其中n是等于x.pos的长度。 ,如果xy.type是“image.midpoints”以下内容是真实的。应x.labels和x.links n的m,其中n是等于的长度x.pos,,正如y.lables和y.links将长度y.pos。 xy.lables xy.links将列表由m matricies的n,其中n是长度y.pos和m是的x.pos长度。 asLinks可以的的长度x.pos,y.pos,(“x.pos * y.pos”),或1。 ,如果xy.type是的“image.boundaries”或“image.box”是非常相似到“image.midpoints”。相反的的长度x.pos和y.pos长度是x.pos-1和y.pos-1。如果xy.type是“聚”,x.lables,y.lables,x.links,y.links,和在xy.lables和xy.links的matricies都是由m。 asLinks是一个单一的值。


值----------Value----------

If returnVl, returns updated Splot object. Also creates .png and
如果returnVl,返回更新Splot的对象。还创建png和


注意----------Note----------

Automatic detection is currently only functional for linux/unix users. A windows extension is being worked on for future version.   See details and vignette for notes on common reasons for automap failing.  
自动检测是目前唯一的功能,对Linux / Unix用户。正在努力的为未来版本的Windows扩展。的注意事项,对细节和暗角的Automap失败的常见原因。


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


Lori A.Shepherd, Daniel P. Gaile



参考文献----------References----------



参见----------See Also----------

initSplot,sendplot, makeSplot,rtiff
initSplot,sendplot,makeSplot,rtiff


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



# Please see vignette or makeSplot for example[例如,请参阅小插曲或makeSplot的]


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-19 04:28 , Processed in 0.034745 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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