split3d(vcdExtra)
split3d()所属R语言包:vcdExtra
Subdivide a 3D Object
细分的3D对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Subdivides a shape3d object or a list of shape3d objects into objects of the same shape along a given dimension according to the proportions or frequencies specified in vector(s).
细分一个shape3d成相同形状的对象的对象或一个列表shape3d对象沿一个给定的尺寸,根据在矢量()中指定的比例或频率。
split3d is the basic workhorse used in mosaic3d, but may be useful in other contexts.
split3d是在mosaic3d基本的重负荷机器使用,但在其他情况下可能是有用的。
range3d and center3d are utility functions, also useful in other contexts.
range3d和center3d实用功能,也可在其他情况下。
用法----------Usage----------
split3d(obj, ...)
## S3 method for class 'shape3d'
split3d(obj, p, dim, space = 0.1, ...)
## S3 method for class 'list'
split3d(obj, p, dim, space = 0.1, ...)
range3d(obj)
center3d(obj)
参数----------Arguments----------
参数:obj
A shape3d object, or a list composed of them
Ashape3d对象,或由它们组成的列表
参数:...
Other arguments for split3d methods
其他参数split3d方法
参数:p
For a single shade3d object, a vector of proportions (or a vector of non-negative numbers which will be normed to proportions) indicating the number of subdivisions and their scaling along dimension dim. For a list of shade3d objects, a matrix whose columns indicate the subdivisions of each object.
对于一个单一的shade3d对象,一个向量的比例(或一个矢量的非负数将赋范比例)表示沿着维度dim的细分数和其缩放。 shade3d对象的列表,一个矩阵的列表示每个对象的细分。
参数:dim
The dimension along which the object is to be subdivided. Either an integer: 1, 2, or 3, or a character: "x", "y", or "z".
沿着该对象是被细分的维度。是一个整数:1,2,或3,或一个字符的“x”,“y”的,或“z”。
参数:space
The total space used to separate the copies of the object along dimension dim. The unit inter-object space is therefore space/(length(p)-1).
总空间用于分离的对象的副本,沿着维度dim。的单元的对象间的空间,因此space/(length(p)-1)。
Details
详细信息----------Details----------
The resulting list of shape3d objects is actually composed of copies of the input object(s), scaled according to the proportions in p and then translated to make their range along the splitting dimension equal to that of the input object(s).
shape3d对象的结果列表实际上是由输入对象(S),根据p“,然后翻译,使他们沿着分裂的维数等于的比例缩放副本输入对象(S)。
值----------Value----------
split3d returns a list of shape3d objects.
split3dshape3d对象返回一个列表。
range3d returns a 2 x 3 matrix, whose first row contains the minima on dimensions x, y, z, and whose second row contains the maxima.
range3d返回一个2×3矩阵,其第一行包含最小尺寸X,Y,Z,第二行包含的最大值。
center3d returns a numeric vector containing the means of the minima and maxima on dimensions x, y, z.
center3d返回一个数值向量含有的维度上的x,y和z的最大值和最小值的装置。
(作者)----------Author(s)----------
Duncan Murdoch, with refinements by Michael Friendly
参见----------See Also----------
mosaic3d
mosaic3d
shapelist3d for the plotting of lists of shape3d objects.
shapelist3dshape3d对象列表的绘制。
实例----------Examples----------
if (require(rgl)) {
open3d()
cube <- cube3d(alpha=0.4)
sl1 <- split3d(cube, c(.2, .3, .5), 1)
col <- c("#FF000080", "#E5E5E580", "#0000FF80")[FF000080“,”#E5E5E580“,”#0000FF80“)]
shapelist3d(sl1, col=col)
open3d()
p <- matrix(c(.6, .4, .5, .5, .2, .8), nrow=2)
sl2 <- split3d(sl1, p, 2)
shapelist3d(sl2, col=col)
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|