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

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

[复制链接]
发表于 2012-10-1 14:57:02 | 显示全部楼层 |阅读模式
DrawDensityMap(VecStatGraphs2D)
DrawDensityMap()所属R语言包:VecStatGraphs2D

                                        Graphic representation of a point density map
                                         点密度图的图形表示

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

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

The density map will be built as follows: a) vectors are moved to a common origin without changing its azimuth and module; b) end positions perform a point cloud of varying density that depends on the accumulation of vectors with similar properties; and c) end positions are used to calculate the density map as a surface with values depending on the end-position accumulation per area unit. The density map provides information about the joint distribution of modules and azimuths and allows the detection of errors or outliers. Areas in which there is a greater number of points (end position of the vectors) will have a deeper color (red), whereas the areas with lower density will have a less intense color (white). The user can define how many points are classified as outliers. The outliers can be calculated using the higher value of the modules or the harmonic mean. For that, the module value or harmonic mean value is calculated for each vector. Points with the largest module value or harmonic mean value will be considered as outliers.  
密度图将如下构建:到a)矢量被移动到一个共同的起源而不改变其方位角和模块;二)终端位置上执行的不同密度的点云,依赖于具有相似属性的积累的向量,和c)结束位置被用来计算根据积累每单位面积上的终端位置的值作为表面密度图。模块和方位的联合分布密度图提供的信息,并允许错误或异常的检测。有一个更大的数点(结束位置的矢量)的领域中,将有一个更深的颜色(红色),而具有较低的密度的区域将有一个不太激烈的颜色(白色)。用户可以定义多少个点被列为异常值。异常值可以计算出使用的模块或调和平均价值较高的。对于这一点,模块值或谐波平均值被计算为每个向量。最大的模值或谐波的平均值将被视为离群点。


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


DrawDensityMap(data_x, data_y, PercentageOutliers = 5, PaintPoint = FALSE, Div = 250, HarmonicMean = FALSE, PaintAxis = FALSE)



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

参数:data_x
Vector containing the values of the X coordinates  
Vector,其中包含的X坐标的值


参数:data_y
Vector containing the values of the Y coordinates  
Vector,其中包含的值的Y坐标


参数:PercentageOutliers
Integer value that indicates the percentage of points that are considered as outliers. The default value is 5  
整数值,指示被视为离群点的百分比。默认值是5


参数:PaintPoint
Logical value. If PaintPoint=TRUE, then samples are represented by points. If PaintPoint=FALSE, then samples are not represented by points. The default value is FALSE  
逻辑值。如果PaintPoint = TRUE,则样品为代表的点。 ,然后如果PaintPoint = FALSE样本并不代表点。默认值是FALSE


参数:Div
IntegerValue that indicates the number of divisions that will have the density map. The default value is 250  
IntegerValue,表示分割数,将有密度图。默认值是250


参数:HarmonicMean
Logical value. If HarmonicMean=FALSE, then the module is used for the calculation of outliers. If HarmonicMean=TRUE, then the Harmonic Mean is used for the calculation of outliers. The default value is FALSE.  
逻辑值。如果HarmonicMean = FALSE,则该模块用于异常值的计算。如果HarmonicMean = TRUE,然后调和平均用于异常值的计算。默认值是FALSE。


参数:PaintAxis
Logical value. If PaintAxis=TRUE, then the axis will be drawn. If PaintAxis=FALSE, then the axis will not be drawn. The default value is FALSE.  
逻辑值。如果PaintAxis = TRUE,然后将轴画。如果PaintAxis = FALSE,则轴不会被绘制。默认值是FALSE。


Details

详细信息----------Details----------

Kernel descriptors are used to create the density map. To perform these calculations, the MASS package is required.
内核描述符用于创建密度图。要执行这些计算,MASS包是必需的。

The parameter Div is very important because a very large value will lead to the creation of a slow density map, whereas a very small value will create an ineffective density map.
参数的的Div是非常重要的,因为非常大的值会导致创建一个缓慢的密度图,而一个很小的值将创建一个无效的密度图。

One way to obtain a set of X and Y coordinates of the vectors is to use the LoadData function.
以获得一组X和Y坐标的矢量的方法之一是使用LoadData函数。

Typical usages are
典型的用法是


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

This function returns no value and creates a graph that represents a density map from 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----------

DrawHistogram, DrawDistribution, DrawPoints, DrawModuleAndAzimuthDistribution,  DrawVectors.
DrawHistogram,DrawDistribution,DrawPoints,DrawModuleAndAzimuthDistribution,DrawVectors。


实例----------Examples----------


  FileName<-system.file("data/RectangularData.txt", package="VecStatGraphs2D")
  dat<-LoadData(FileName, Type=2, Direction=2)
  X_coordinate<-dat[,3]
  Y_coordinate<-dat[,4]
  DrawDensityMap(X_coordinate, Y_coordinate, PaintPoint = TRUE, Div=200)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-27 06:12 , Processed in 0.024769 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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