xgobi(xgobi)
xgobi()所属R语言包:xgobi
XGobi: Dynamic Graphics for Data Analysis
XGobi:动态图形数据分析
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Dynamic graphics, including brushing, rotation, grand tour, projection pursuit, slicing. Most effectively used when called more than once on same data, which then allows linked plots. Brushing with several glyphs and colors is supported. (On monochrome displays, only glyphs can be used.)
动态图形,其中包括刷牙,旋转,大旅游,投影寻踪,切片。最有效地使用时调用一次以上相同的数据,然后允许连接图。支持刷牙几个字形和颜色。 (在单色显示器,只有字形可以被使用。)
用法----------Usage----------
xgobi(matrx,
collab = colnames(matrx),
rowlab = rownames(matrx),
colors = NULL, glyphs = NULL, erase = NULL,
lines = NULL, linecolors = NULL, resources = NULL,
title = deparse(substitute(matrx)),
vgroups = NULL, std = "mmx",
nlinkable = NULL, subset = NULL, display = NULL,
multi = TRUE,
keep = FALSE, fprefix = "xgobi-")
xgobi.colors.default
参数----------Arguments----------
参数:matrx
numeric n * p matrix or data.frame.
数字n * p矩阵或数据框。
参数:collab
character vector of p column labels (defaulting to those of matrx); if no default exists, xgobi constructs its own ("Var1",....).
字符向量p的列标签(默认为那些matrx);如果没有默认存在,xgobi构建自己的("Var1",...)。
参数:rowlab
character vector of n row labels (defaulting to those of matrx); if no default exists, xgobi constructs its own (numbers 1:n).
字符向量n的行标签(默认为那些matrx);如果没有默认存在,xgobi构建自己的(数字1:n)。
参数:colors
Optional character vector, used to supply initial point colors to be used; the default is that all points are the same color. Details, see below.
可选的字符向量,用于提供初始点使用的颜色,默认为所有的点都相同的颜色。详细信息,请参阅下文。
参数:glyphs
Optional integer vector, used to supply glyphs to be used on startup; the default is that all points are drawn with the same glyph.
可选的整数向量,用于提供在启动时要使用的字形,默认为所有的点都得出相同的字形。
Glyphs have been coming as six different types (plus, X, open and filled rectangle, open and filled circle) in five different sizes, plus “point”, giving 31 available glyphs.
雕已六种不同类型(加,X,开放和填充的矩形,开放和充满圆)在五种不同的尺寸,再加上“点”,提供31个可用的字形。
参数:erase
Optional integer vector of length equal to the number of rows in the data and composed of 1s and 0s. A 1 in position i specifies that point i should be erased. The default is a vector of 0s.
可选整数向量的长度等于在数据中的行数和组成的1s和0s。 A 1的位置,我指定我应该被删除。默认值是0的向量。
参数:lines
Optional integer matrix, n by 2, which specifies by row number pairs of points to be connected by line segments. The default connecting line matrix connects each point to the one that follows it in the data; that is, (1 2), (2 3), (3 4), ..., (n-1, n).
可选整数矩阵中,n 2,用于指定要通过线段连接的点的行数对。默认的连接线矩阵连接每个点,它后面的一个中的数据,即,(1 2),(2 3),(3 4),...,第(n-1,n)的。
参数:linecolors
Optional integer vector, of length n where n is the number of lines specified by the 'lines' argument. It is used to supply line colors to be used on startup; the default is for all the lines to be drawn in the standard foreground color.
可选的整数向量,长度为n,其中n为指定的行数由“线”的说法。它是用来提供在启动时使用的线的颜色;缺省是为所有的行要被绘制在标准的前景色。
参数:resources
Optional character vector created by clicking on the “Save Resources” button in XGobi (if this XGobi was initiated during an R session).
通过点击“保存资源”按钮,在XGobi(如果这XGobi是在R会话发起),创建可选的字符向量。
参数:title
Optional character string which defines the -title argument used by X. Defaults to the name (expression) of the current matrx argument. See documentation for xgobi, or for X.
可选的字符串,它定义了-title参数X的默认值(表达)目前的matrx参数的名称。请参阅文档xgobi,或为X
参数:vgroups
Optional integer vector, used to assign columns to groups for transformation and axis scaling. This vector must contain one integer for each variable. Columns to be grouped together should share the same integer. Default is the vector 1ncol(matrx)).
可选的整数向量,用于指定列组改造和轴缩放。这个向量的每个变量都必须包含一个整数。列组合到一起共享相同的整数。默认向量1ncol(matrx))。
参数:std
Optional string; which standardization of view to use. Default is "mmx", minimum-maximum scaling, in which the view is centered at the midpoint of the data, and all the data fits inside the plotting window. Alternatives are "msd", in which the plot is centered at the mean of the data, or "mmd" in which the plot is centered at the median. In those two cases, the view is standardized using the largest distance.
可选字符串,使用标准化的观点。默认是"mmx",最小 - 最大缩放,该视图的中心的中点处的数据,所有的数据适合内的绘图窗口。替代品是"msd"“的图为中心的数据平均,或"mmd":在其中的图集中在中位数。在这两种情况下,视图使用的最大距离是标准化的。
参数:nlinkable
Optional integer scalar, the number of rows to be used in linking of brushing and identification; the default is for all rows to be used. This feature can be used to link ordinary scatterplots with plots that have some decorations requiring additional points, such as clustering trees.
可选的整数标中使用的连接刷牙和识别的行数,默认为要使用的所有行。此功能可用于连接普通的散点图,图,有一些需要额外点的装饰品,如聚类树。
参数:subset
Optional integer scalar, the number of rows to be included in the initial display. That is, all data will be read in, but an initial random sample will be drawn for display. Use the Subset panel on the Tools Menu to select a new subset during the session.
可选的整数标量,包括在初始显示的行的数目。也就是说,所有的数据都被读取,但初始随机样本将被绘制显示。在“工具”菜单上选择一个新的子集,在会议期间使用的“子集”面板。
参数:display
Optional character string, identifying the monitor on which to display the xgobi window. The default is "machine:0.0" where machine is the name of the user's workstation. See documentation for xgobi or for X.
可选的字符串,确定在显示器上显示的xgobi窗口。默认值是"machine:0.0"machine是在用户的工作站的名称。请参阅文档的xgobi或十
参数:multi
logical, indicating if the xgobi process should be run multi-tasking with R. If true, control returns to the R command prompt after 3 seconds.
逻辑,,,如果xgobi过程应执行多任务与R.如果为true,控制返回到R命令提示符下3秒后。
参数:keep
logical, indicating if the temporary files should be kept (e.g. for calling the xgobi program outside R)
逻辑,如果应保存的临时文件(例如调用xgobi计划海外研究)
参数:fprefix
character string for the file name prefix to be used for temporary files.
字符串的文件名前缀,用于临时文件的。
Details
详细信息----------Details----------
xgobi.colors.default is the vector of the ten default brush colors from which to choose by the colors argument.
xgobi.colors.default是10默认画笔的颜色,从中选择colors参数的向量。
Note that this sef of default brush colors can be modified by a (site or user) specific "app-defaults" file, or directly by xgobi(*, resources = ..), redefining (*brushColorn (with n from 0:9).
注意:默认画笔颜色,这海基会可以修改(网站或用户)的具体app-defaults文件,或直接由xgobi(*, resources = ..),重新定义(的*brushColor“n (n0:9“)。
A warning is issued if colors contains strings not in the brushColor resources.
系统将发出警告,,如果colors包含字符串brushColor资源。
值----------Value----------
The UNIX status upon completion, i.e. 0 if ok.
在UNIX status完成后,即0,如果ok了。
副作用----------Side Effects----------
The R function xgobi executes a call to the C program of the same name, an interactive statistical graphics program which runs under the X Window System, and returns control of the R command line to the user.
R的功能xgobi执行相同的名字,一个互动的统计图形程序运行在X Window系统的C程序的调用,并返回控制的R命令行的用户。
XGobi can be used to create vectors of brushing information and rotation coefficients; see the documentation for XGobi for details.
XGobi可以用来创建涂刷信息和旋转系数的向量;有关详细信息,请参阅为XGobi文档。
联系我们----------CONTACT----------
(xgobi main program): D. F. Swayne dfs@research.att.com
(xgobi主程序):DF斯韦恩dfs@research.att.com
(作者)----------Author(s)----------
of <font face="Courier New,Courier" color="#666666"><b>R</b></font> port: Kurt Hornik and
Martin Maechler <a href="mailto:maechler@stat.math.ethz.ch">maechler@stat.math.ethz.ch</a>
参考文献----------References----------
http://www.research.att.com/areas/stat/xgobi/, <br> http://www.public.iastate.edu/~dicook/
参见----------See Also----------
xgvis which uses xgobi for interactive MDS.
xgvis使用xgobi互动MDS的。
实例----------Examples----------
data(laser)
xgobi(laser)
Xdir <- file.path(dirname(tempfile()), "xgobi")
dir.create(Xdir)
xgobi(laser, colors = xgobi.colors.default[c(1,3,5,7,9,10)[as.factor(laser$ Ir)]],
glyphs = c(23,8)[1+(laser$lambda > 1576)],
keep = TRUE, fprefix="xgobi/L-")
file.info(list.files(Xdir, full=TRUE))[, c(1,3,4)] # >> Files "L-laser..."[“文件”L-激光......“]
## remove manually when finally unused:[#手动删除的时候,终于未使用的:]
unlink(Xdir, recursive = TRUE)
##>>> see also the morsecodes example in help(xgvis) <<<[#>>>也morsecodes的例子,帮助(xgvis)<<<]
## ------------------ -----------[#-----------------------------]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|