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

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

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

                                        INTERACTIVE SCATTERPLOT- DEPRECATED
                                         互动散点图DEPRECATED

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

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

This function is a wrapper to sendplot that will create a single interactive scatterplot
这个函数是一个的包装到sendplot,将创建一个交互式的散点图


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



sendxy(plot.call,
       x, y,
       xy.lbls = NA, x.lbls = NA,y.lbls=NA,
       x.links=NA, y.links=NA,
       xy.links=NA,asLinks=NA,
       xlim = NA, ylim = NA,
       mai=NA, mai.prc=FALSE,plt.extras=NA,
       bound.pt=FALSE, source.plot=NA,
       paint=FALSE,img.prog = NA,
       resize="800x1100",
       ps.paper="letter",ps.width=8,ps.height=11,
       fname.root="test",dir="./",header="v2",
       up.left=c(205,131),low.right=c(633,883),
       spot.radius=5, automap=FALSE, automap.method="mode")




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

参数:plot.call
character vector containing single plot call
字符向量单一图呼叫


参数:x
vector of x locations for interactive points
向量的x位置为互动点


参数:y
vector of y locations for interactive points
y位置为向量的互动点


参数:xy.lbls
data frame of n x m which contatins values relating to the x axis of the plot call. n should be the length of the x argument. m columns contains information regarding sample. This information is displayed in the interactive plot window
的NXM其中contatins于x轴的图呼叫有关的值中的数据框。 n应的长度的X的参数。 m列包含有关样品的信息。此信息将显示在交互式绘图窗口


参数:x.lbls
data frame of n x m which contains values relating to the x axis of the plot call. n should be the length of the x argument. m columns contains information regarding sample. This information is displayed in the interactive plot window
NXM包含图呼叫有关的x轴的值的数据框。 n应的长度的X的参数。 m列包含有关样品的信息。此信息将显示在交互式绘图窗口


参数:y.lbls
data frame of n x m which contains values relating to the y axis of the plot. n should be the length of the y argument. m columns contains information regarding sample. This information is displayed in the interactive plot window
数据,的NXM其中包含的值与y轴的图框架。 n应该是y参数的长度。 m列包含有关样品的信息。此信息将显示在交互式绘图窗口


参数:x.links
data frame of n x m which contains web addresses for links relating to the x axis of the first plot. n should be the length of the x argument. m columns contains information regarding sample. This information is displayed as hyperlinks in the interactive plot window.
数据框NXM其中包含有关第一条曲线的x轴的链接的网页地址。 n应的长度的X的参数。 m列包含有关样品的信息。此信息显示作为交互式绘图窗口中的超链接。


参数:y.links
data frame of n x m which contains web addresses for links relating to the y axis of the first plot. n should be the length of the y argument. m columns contains information regarding sample. This information is displayed as hyperlinks in the interactive plot window.
数据框的NXM包含网络地址有关的所述第一标绘在y轴的链接中。 n应该是y参数的长度。 m列包含有关样品的信息。此信息显示作为交互式绘图窗口中的超链接。


参数:xy.links
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. This information is displayed in the interactive plot window as hyperlinks. The values in these matricies should be complete web address
列表的matricies。所有matricies应该是NXM其中n是y的长度,m是x的长度。为超链接的互动式绘图窗口中显示此信息。值在这些matricies应是完整的Web地址


参数:asLinks
contains complete web address for points that should be treated as hyperlinks. May be a data.frame or matrix of n x m where n is the length of y and m is the length of x, a vector of length x indicating x specific links that will be repeated, a vector of length y indicating y specific links that will be repeated, a non NA value of length 1 that will be repeated for all points, or a vector of length x*y  
包含完整的网络地址应被视为超链接点。可能是一个数据框或矩阵NXM其中n是y的长度,m是长度的矢量的长度为x,所述指示所述特定的链接,将被重复,一个向量的长度y指示Y特异链接,将被重复,非NA值的长度为1,将重复的所有点,或向量,长度为x * y的


参数:xlim
xlim values for the plot. If left as NA, the range of x will be used.
XLIM值的积。如果留为NA,x的范围将被使用。


参数:ylim
ylim values for the plot. If left as NA, the range of y will be used.
ylim值的积。如果留为NA,y的范围内将被使用。


参数:mai
margins for each side of the plot.If NA uses default margins
每边的plot.If NA的利润使用默认页边距


参数:mai.prc
logical indicating if mai mat values are percentages or hard coded values. If mai.proc is T, indicates percentage.
逻辑说明,如果迈垫值的百分比或硬编码值。如果mai.proc是T,表示百分比。


参数:plt.extras
List of additional plotting calls that should be executed for the plot.
的图,应执行额外的绘图调用的列表。


参数:bound.pt
logical indicating if red points should be plotted to aid in finding the upper left and lower right coordinates. If bound.pt is FALSE, indicates that up.left and low.right arguments are correct and will make the html file  
逻辑指示如果加上红色点应绘制,以帮助在寻找的左上角和右下角的坐标。如果bound.pt是FALSE,表示up.left参数和low.right参数是正确的,并会在html文件


参数:source.plot
Indicates whether application should make a postscript file and then convert to png file, or if the png file should be made directly. This value is either ps, png, or NA. If NA the operating system is checked and the appropraite file format is output. Unix has a convert function that can convert a ps file to png file; we by default use this setup because we feel the postscript file maintains better quality. So on unix/linux systems if source.plot is NA, source.plot will be set to ps. Windows does not have this option, for this reason source.plot will be set to png if left NA
指示应用程序是否应该让一个postscript文件,然后转换成PNG文件,或png文件应直接。这个值可以是PS,PNG或NA。如果NA的操作系统被选中并且建立适合的文件格式是输出。 Unix系统有一个转换功能,可以将一个PS文件转换为png文件,默认情况下,使用这种设置,因为我们觉得postscript文件保持更好的质量。因此,在UNIX / Linux系统如果source.plot是NA,source.plot将被设置为PS。 Windows并没有这个选项,因为这个原因source.plot将被设置为PNG,如果不适用


参数:paint
logical indicating if application should automatically open .png file for the user to view .png file and/or to retrieve needed bounding values of the plot call.
逻辑表明,如果应用程序应该会自动打开。png文件,供用户查看。png文件和/或检索所需要边界值的图调用。


参数:img.prog
If paint is TRUE, the command line call that will open a program to view .png file to retrieve pixil locations of interactive plot bounds. If this is left NA, the operating system is checked and a default program is used. For unix the default application is kolourpaint and for windows it is microsoft paint (mspaint)
如果涂料是TRUE,命令行调用,将打开一个程序来查看。png文件检索pixil交互式绘图边界的位置。如果没有此NA时,操作系统被选中并且使用一个默认程序。对于UNIX,默认应用程序kolourpaint的的和Windows是Microsoft画图(MSPAINT)


参数:resize
character indicating resize value. The postscript version will be resized to this value when converted to .png.
字符表示缩放值。 PostScript版本时,这个值将被调整。PNG转换为。


参数:ps.paper
postscript paper argument
PostScript的纸张参数


参数:ps.width
poscript width argument
poscript宽度参数


参数:ps.height
postscript height argument
后记高度参数


参数:fname.root
Base name to use for posctscript, .png, and html file names.
为posctscript,PNG,和html文件名的基本名称使用。


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


参数:up.left
The x and y value in pixels of the upper left hand corner of the plot call
的x和y的值以像素为单位的左上角的图呼叫


参数:header
May either be v1 or v2. This determines which tooltip header will be in the html file. Each version has different features or works well with different web browsers. see sp.header for details.   
可能是V1或V2。这决定了哪些工具提示头将在HTML文件中。每个版本都有不同的特点,或与不同的Web浏览器。有关详细信息,请参阅sp.header。


参数:low.right
The x and y value in pixels of the lower right hand corner of the plot call.
的x和y的值以像素为单位的右下角的图呼叫。


参数:spot.radius
radius of circle in pixels indicating area that will be interactive around the center of interactive points
在指示区域的像素中,将圆的半径是交互式的交互点的中心周围


参数:automap
automatic detection of up.left and low.right bound points. Fully functional on linux/unix machines only.
的up.left和low.right绑定点的自动检测。全功能仅在Linux / UNIX机器。


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


Details

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

This function is a wrapper for the sendplot function to create a single interacive scatterplot. See sendplot for more information.
这个函数是一个包装的sendplot功能创建一个单一interacive的散点图。见sendplot更多信息。

Users are encouraged to read the package vignette which includes a detailed discussion of all function arguments as well as several useful examples.
我们鼓励用户阅读的的包小插曲,其中包括详细讨论了函数的所有参数以及一些有用的例子。


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

Creates a static .ps and .png file, and an interactive html file
创建一个静态的。ps和png文件,和一个交互的HTML文件


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

The interactive html plot currently only works in web browsers that implement java script.
交互的HTML图目前只适用于在实现Java脚本的Web浏览器。

The code used to create the javascript embedded in html file is a modified version of the javascript code or from the open source tooltip library. see reference links
用于创建JavaScript嵌入在HTML文件中的代码是修改后的版本的JavaScript代码的开源工具提示库。见参考文献链接

This function is deprecated. Please see xy.send for updated version.
此功能已经过时了。请参阅xy.send更新的版本。


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


Lori A. Shepherd, Daniel P. Gaile



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




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

initSplot, makeImap, makeSplot, xy.send,
initSplot,makeImap,makeSplot,xy.send,


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


# load the library[加载库]
  library("sendplot")

# create some vectors of points[创建一些矢量点]
   x1 = 1:7
   y1 = 1:7  
   x2 = 7:1
   y2 = rep(4,7)
# create master vector of all points[创建主矢量的所有点]
   x = c(x1,x2)
   y = c(y1,y2)

# create data frame of information to display in interactive  [创建数据框要显示的信息的互动]
   xy.lbls = list()
   xy.lbls$test = rep(c("a","b","c","d","e","f","g"),2)
   xy.lbls$num = 1:14
   xy.lbls = as.data.frame(xy.lbls)

# create plot.call for graph[创建plot.call供图]
   plot.calls = "plot(x1,y1,col='green', pch=3, cex=1.5); points(x2,y2,
pch=4, cex=1.5, col='purple')"


#[]
# Note this plot call could have also been run with [请注意这个图本来也可以调用运行]
#[]
#   plot.calls = "plot(x1,y1,col='green', pch=3, cex=1.5)"[plot.calls =“图”(X1,Y1,列=绿色,,PCH = 3,CEX = 1.5)]
#  []
#  and then setting the[然后设置]
#        plt.extras$plot1 = "points(x2,y2,pch=4, cex=1.5, col='purple')"[plt.extras plot1 =“点(X2,Y2,PCH = 4,CEX = 1.5,列=紫),”]


#set up temporary directory[设立临时目录]
direct = paste(tempdir(),"/",sep="")
direct




# run sendxy[运行sendxy]
# note: we have already figured out appropriate up.left and low.right[注意:我们已经想通了,适当的up.left和low.right,]
#      values. if these were not known, the function should be run[值。如果这些人不知道,该功能应运行]
#      with bound.pt=T (and maybe paint=T) to find pixil[与bound.pt = T(也许画= T)找到pixil]
#      locations[地点]
#[]
# The up.left and low.right values are correct if run in [的up.left价值和low.right价值是正确的,如果运行在]
#  unix/linux environment - for window users the coordinates will not be[UNIX / Linux环境 - 窗口中用户的坐标将不]
#  correct[纠正]

  sendxy(plot.call = plot.calls, x=x, y=y,
         xy.lbls=xy.lbls, plt.extras=NA,
         bound.pt=FALSE, source.plot=NA, paint=FALSE,
         img.prog=NA,fname.root="testXY",dir=direct,
         up.left=c(124,130),low.right=c(713,883))



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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-19 02:56 , Processed in 0.021759 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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