DrawDensity3D(VecStatGraphs3D)
DrawDensity3D()所属R语言包:VecStatGraphs3D
Graphic representation of a point Density Map.
点密度图的图形表示。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The density map was built as follows: a) vectors are moved to a common origin without changing its angle and module, b) end position perform a point cloud of varying density that depends on the accumulation of vectors with similar properties, c) end positions are used for to calculate the density map as a surface with values depending on the end-position accumulation per area unit. Areas where there is a greater number of points (end position of the vectors) will have a deeper color (red), while the areas a lesser density will have a less intense color (white).
密度图建立如下:一)矢量不改变其角度和模块,B的情况下移动到一个共同的起源)结束位置执行不同的密度,具有相似属性的角上的积累的向量取决于一个点云)端部位置用于根据积累每单位面积上的终端位置中的值作为表面来计算密度图。有更多的点(结束位置的向量)的地方才会有更深的颜色(红色),而密度较小的领域将有较强烈的色彩(白色)。
用法----------Usage----------
DrawDensity3D(vectors, Div = 40, Layers = 3, DrawAxes = FALSE)
参数----------Arguments----------
参数:vectors
Matrix containing the values of the coordinates
包含的坐标的值的矩阵
参数:Div
Integer value that indicates the number of divisions that will have the density map. The default value is 40
整数值,指示分割的数量,将有密度图。默认值是40
参数:Layers
Integer value that indicates the number of layers that will have the density map. The default value is 3
整数值,指示的层数,将有密度图。默认值是3
参数:DrawAxes
Logical value, if DrawAxes=TRUE draw axes, if DrawAxes=FALSE draw not axes. The default value is FALSE
逻辑值,如果DrawAxes = TRUE的抽奖轴,如果DrawAxes = FALSE抽奖轴。默认值是FALSE
Details
详细信息----------Details----------
To create the density map, are used Kernel descriptors, to perform these calculations is required the MASS package.
要创建的密度图,使用的内核描述符,执行这些计算需要大规模的包。
The parameter Div is very important because a very large value will cause the creation of the slow density map, and a very small value would create a ineffective density map.
参数的的Div是非常重要的,因为非常大的值会导致创建的缓慢密度图,和一个很小的值将创建一个无效的密度图。
One way to get a set of coordinates X, Y and Z of the origin position and end position (coordinates X, Y and Z of the vector) or of the colatitude and longitude, it is using the LoadData3D function.
一种方式得到一组坐标X,Y和Z的原点位置和结束位置(坐标X,Y和Z的矢量)或余纬度和经度,它使用的是LoadData3D函数。
Typical usages are
典型的用法是
值----------Value----------
This function returns no value, creates a 3D Graph that represents a density map of the input values.
该函数没有返回值,创建一个三维图形的输入值,代表了密度图。
(作者)----------Author(s)----------
Ruiz-Cuetos, J.C., <a href="mailto:bilba_t@hotmail.com">bilba_t@hotmail.com</a>, Polo , M.E., <a href="mailto:mepolo@unex.es">mepolo@unex.es</a>, Rodriguez, P.G.<a href="mailto:pablogr@unex.es">pablogr@unex.es</a>
参考文献----------References----------
参见----------See Also----------
DrawModuleAndAngleDistribution3D.
DrawModuleAndAngleDistribution3D。
实例----------Examples----------
FileName<-system.file("data/XYZcoor.txt", package="VecStatGraphs3D")
dat<-LoadData3D(FileName, Type=1)
coordinates<-dat[,4:6]
DrawDensity3D(coordinates, Layers=3, Div=50)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|