sendimage(sendplot)
sendimage()所属R语言包:sendplot
INTERACTIVE IMAGE - DEPRECATED
交互式图像 - DEPRECATED
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function is a wrapper to sendplot that will create a single interactive image
这个函数是一个的包装到sendplot,将创建一个交互式图像
用法----------Usage----------
sendimage(plot.call,
x, y, z,
z.value="value",
x.lbls = NA,y.lbls=NA,xy.lbls=NA,
x.links=NA, y.links=NA,
xy.links=NA,asLinks=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(188,103),low.right=c(648,912),
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位置为向量的互动点
参数:z
vector of z values for image call
向量的z值的图像调用
参数:z.value
character vector indicating the label for what the z argument holds.
字符向量表示的z参数的标签。
参数: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列包含有关样品的信息。此信息将显示在交互式绘图窗口
参数:xy.lbls
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
列表的matricies。所有matricies应该是NXM其中n是y的长度,m是x的长度。此信息将显示在交互式绘图窗口
参数: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的
参数:mai
margins for each side of the plot.If NA uses default margins
每边的plot.If NA的利润使用默认页边距
参数:plt.extras
List of additional plotting calls that should be executed for the plot.
的图,应执行额外的绘图调用的列表。
参数:mai.prc
logical indicating if mai mat values are percentages or hard coded values. If mai.proc is T, indicates percentage.
逻辑说明,如果迈垫值的百分比或硬编码值。如果mai.proc是T,表示百分比。
参数: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
应建立文件的目录路径
参数: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。
参数:up.left
The x and y value in pixels of the upper left hand corner of the plot call
的x和y的值以像素为单位的左上角的图呼叫
参数: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 image. See sendplot for more information.
此功能是的包装创建一个单一的interacive形象的sendplot功能。见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 imagesend for updated version.
此功能已经过时了。请参阅imagesend更新的版本。
(作者)----------Author(s)----------
Lori A. Shepherd, Daniel P. Gaile
参考文献----------References----------
参见----------See Also----------
imagesend, initSplot, makeImap, makeSplot,
imagesend,initSplot,makeImap,makeSplot,
实例----------Examples----------
# load the library [加载库]
library("sendplot")
# set up vectors x,y, and z[设立的向量x,y和z]
x = 1:4
y = 1:8
z = t(matrix(rnorm(32), ncol=4))
# create plot call for graph[图要求图]
plot.calls = "image(x=x, y=y, z=z)"
#set up temporary directory[设立临时目录]
direct = paste(tempdir(),"/",sep="")
direct
# run sendImage[运行sendImage的]
# 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 kolourpaint=T) to find pixil[与bound.pt = T(和,也许kolourpaint = T)找到pixil]
# locations[地点]
sendimage(plot.call = plot.calls, x=x, y=y, z=z,
up.left=c(100,99),low.right=c(738,917),
bound.pt=FALSE, source.plot=NA, paint=FALSE,
img.prog=NA,fname.root="testImg",dir=direct )
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|