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

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

[复制链接]
发表于 2012-2-26 00:01:03 | 显示全部楼层 |阅读模式
do3d(made4)
do3d()所属R语言包:made4

                                        Generate 3D graph(s) using scatterplot3d
                                         生成三维图形(S)使用scatterplot3d

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

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

do3d is a wrapper for scatterplot3d. do3d will draw a single 3D xyz plot and will plot each group of points in a different colour, given a factor.
do3d是scatterplot3d包装。 do3d将绘制一个3D XYZ图,将绘制点,每个组以不同的颜色考虑的一个因素。

rotate3d calls do3d to draw multiple 3D plots in which each plot is  marginally rotated on the x-y axis.  
rotate3d要求do3d绘制多个,其中每个图轻微被XY轴旋转的3D绘图。


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


do3d(dataset, x = 1, y = 2, z = 3, angle = 40, classvec = NULL, classcol
= NULL, col = NULL, cex.lab=0.3, pch=19, cex.symbols=1, ...)
rotate3d(dataset, x = 1, y = 2, z = 3, beg = 180, end = 360, step = 12,
savefiles = FALSE, classvec = NULL, classcol = NULL, col = NULL, ...)



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

参数:dataset
XYZ coordinates to be plotted. A matrix or data.frame  with 3 or more columns. Usually results from multivariate analysis, such as the \$co or \$li coordinates from a  PCA dudi.pca, or COA  dudi.coa or the \$ls, \$co coordinates from bga.  
XYZ坐标绘制。一个matrix或data.frame有3个或更多的列。一般从多因素分析结果,如\ $合作或\ $李坐标从一个PCA dudi.pca,或COA dudi.coa\ $ LS \ $合作bga协调。


参数:x
Numeric, the column number for the x-axis, the default is 1 (that is dataset[,1])
数字,列数为x轴,则默认为1(即数据[1])


参数:y
Numeric, the column number for the y-axis, the default is 2 (that is dataset[,2])
数字,列数为y轴,则默认为2(即数据[2])


参数:z
Numeric, the column number for the z-axis, the default is 3 (that is dataset[,3])
数字,列数为z轴,默认为3(即数据[3])


参数:angle
Numeric, the angle between x and y axis. Note the result depends on scaling. See  scatterplot3d   
数字,X和Y轴之间的夹角。注意结果取决于缩放。看到scatterplot3d


参数:classvec
A factor or vector which describes the classes in dataset  
一个factor或vector集介绍类


参数:classcol
A factor or vector which list the colours for each of the classes in the dataset. By default NULL. When NULL, getcol is used to obtain an optimum set of colours of the classes in classvec.
一个factor或vector哪个列表的DataSet中的每个类的颜色。默认为NULL。如果为NULL,getcol使用获得颜色在classvec类的最佳集。


参数:cex.lab
Numeric. The magnification to be used for the axis annotation  relative to the current default text and symbol size. Default is 0.3
数字。放大倍率可用于轴标注相对于当前的默认文字和符号的大小。默认为0.3。


参数:pch
Integer specifying a symbol or single character to be used when  plotting points. The default is pch=  19
整数,指定绘制点时要使用的符号或单个字符。默认为PCH = 19


参数:cex.symbols
Numeric. The magnification to be used for the symbols  relative to the current default text size. Default is 1
数字。可用于当前的默认文本大小的符号相对放大倍率。默认是1。


参数:col
A character indicating a colour. To be used if all points are to be one colour. If classvec, classcol and col are all NULL. all points will be drawn in red by default.
字符显示颜色。要使用所有的点,如果是一种颜色。如果classvec,classcol和山坳都是NULL。在默认情况下,红色,所有的点,将绘制。


参数:beg
Numeric. The starting angle between the x and y axis for rotate3d. Rotate3d will draw plots in which they are rotated from angle beg to angle end
数字。为ROTATE3D X和Y轴之间的角度出发。 ROTATE3D会画的图中,他们是从角度的旋转,求广角端


参数:end
Numeric. The final angle between the x and y axis for rotate3d. Rotate3d will draw plots in which they are rotated from angle beg to angle end  
数字。 X和Y轴之间的最后角度为rotate3d。 ,ROTATE3D会画的图中,他们是从角旋转beg角end


参数:step
Numeric. Increment of the sequence between the starting angle beg and the final angle end.  
数字。乞求递增的序列之间的起始角度和最后广角端。


参数:savefiles
Logical, indicating whether the plot should be saved as a pdf file. The default is FALSE  
逻辑,图是否应该被保存为PDF文件。默认是FALSE


参数:...
further arguments passed to or from other methods  
通过进一步的论据或其他方法


Details

详情----------Details----------

This calls scatterplot3d to plot a 3d representation of results.  
这就要求scatterplot3d绘制3D表示的结果。

It is also worth exploring the package rgl which enables dynamic 3d plot (that can be rotated)
这也是值得探讨的包rgl这使动态的3D绘图(可旋转)

library(rgl) plot3d(khan.coa$co[,1], khan.coa$co[,2],khan.coa$co[,3], size=4, col=khan$train.classes) rgl.snapshot(file="test.png", top=TRUE) rgl.close()
图书馆(RGL)plot3d(khan.coa美元合作[1],khan.coa $ CO [,2],khan.coa合作[3] = 4,COL =汗$ train.classes的),大小RGL。 =“test.png”快照(文件,顶部= TRUE),rgl.close()


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

Produces plots of the xyz coordinates.
产生的XYZ坐标的图。


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


Aedin Culhane



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

See Also scatterplot3d
另见scatterplot3d


举例----------Examples----------


data(khan)
if (require(ade4, quiet = TRUE)) {
khan.coa<-dudi.coa(khan$train, scannf=FALSE, nf=5)
}
par(mfrow=c(2,1))
do3d(khan.coa$co, classvec=khan$train.classes)
do3d(khan.coa$co, col="blue")
rotate3d(khan.coa$co,classvec=khan$train.classes)
khan.bga<-bga(khan$train, khan$train.classes)
plot.new()
par(bg="black")
do3d(khan.bga$bet$ls, classvec=khan$train.classes)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-4 09:47 , Processed in 0.023625 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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