xy.send(sendplot)
xy.send()所属R语言包:sendplot
INTERACTIVE SCATTERPLOT
交互式的散点图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function is a wrapper to sendplot that will create a single interactive scatterplot
这个函数是一个的包装到sendplot,将创建一个交互式的散点图
用法----------Usage----------
xy.send(plot.call,
x.pos,
y.pos,
plot.extras = NA,
mai.mat=NA, mai.prc=FALSE,
xy.labels=NA,
image.size="800x1100",
spot.radius = 5,
fname.root="Splot",
dir="./",
window.size = "800x1100",
...)
参数----------Arguments----------
参数:plot.call
character vector containing single plot call
字符向量单一图呼叫
参数:x.pos
vector of x locations for interactive points
向量的x位置为互动点
参数:y.pos
vector of y locations for interactive points
y位置为向量的互动点
参数:plot.extras
List of additional plotting calls that should be executed for the plot.
的图,应执行额外的绘图调用的列表。
参数:mai.mat
1 x 4 matrix of values to be passed in for each plots par mai. n is equal to the length of plot.calls. If NA, uses default margins.
1 x 4矩阵的值来传递为每个图面值迈。 n是等于plot.calls的长度。如果不适用,使用默认的页边距。
参数:mai.prc
logical indicating if mai mat values are percentages or hard coded values. If mai.proc is T, indicates percentage.
逻辑说明,如果迈垫值的百分比或硬编码值。如果mai.proc是T,表示百分比。
参数:xy.labels
list of matricies. All matricies should be of n x m where n is the length of xpos or ypos. This information is displayed in the interactive plot window
列表的matricies。其中n是长度XPOS或ypos所有matricies应该是NXM。此信息将显示在交互式绘图窗口
参数:image.size
character indicating size of device.
字符指示的移动设备的大小。
参数:spot.radius
radius of circle in pixels indicating area that will be interactive around the center of graphed points
圆的半径,在指示区域的像素,将绘制的点的中心周围是交互式
参数:fname.root
Base name to use for all files created.
基本名称使用的所有文件创建。
参数:dir
directory path to where files should be created. Default creates files in working directory
应建立文件的目录路径。默认创建的文件在工作目录
参数:window.size
size of the html window
的HTML窗口的大小
参数:...
additional arguments to the makeImap function
其他参数的makeImap功能的
Details
详细信息----------Details----------
This function is a wrapper for the sendplot function to create a single interacive scatterplot. See initSplot, makeImap, and makeSplot for more information.
这个函数是一个包装的sendplot功能创建一个单一interacive的散点图。见initSplot,makeImap和makeSplot的详细信息。
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 and interactive scatterplot
创建一个静态的,互动的散点图
注意----------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代码的开源工具提示库。见参考文献链接
(作者)----------Author(s)----------
Lori A. Shepherd, Daniel P. Gaile
参考文献----------References----------
参见----------See Also----------
initSplot, makeImap, makeSplot, imagesend, heatmap.send, sendplot-package, sendxy
initSplot,makeImap,makeSplot,imagesend,heatmap.send,sendplot-package,sendxy
实例----------Examples----------
library(sendplot)
library(rtiff)
plot.call=c("plot(mtcars$hp,mtcars$mpg,xlab='gross horsepower',
ylab='miles per gallon',axes=FALSE,pch=mtcars$cyl,
col=mtcars$am+1,cex=0.875,
main='Motor Trend Car Road Tests')")
plot.extras=c("axis(1);axis(2);
legend(200,25,pch=rep(c(4,6,8),2),col=c(rep(1,3),rep(2,3)),
legend=paste(rep(c(4,6,8),2),'cylinders,',
c('automatic','manual')[c(rep(1,3),rep(2,3))]),cex=0.875)")
#set up temporary directory[设立临时目录]
direct = paste(tempdir(),"/",sep="")
direct
xy.send(plot.call=plot.call,
y.pos=mtcars$mpg,x.pos=mtcars$hp,
xy.labels = data.frame(name=rownames(mtcars),mtcars=mtcars),
plot.extras=plot.extras,
image.size="800x600",
fname.root="exPlotXY", dir = direct, font.size=18)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|