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

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

[复制链接]
发表于 2012-10-1 15:09:53 | 显示全部楼层 |阅读模式
ordipointlabel(vegan)
ordipointlabel()所属R语言包:vegan

                                         Ordination Plots with Points and Optimized Locations for Text
                                         与文字的位置点和优化的排序图

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

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

The function ordipointlabel produces ordination plots with points and text label to the points. The points are in the exact location given by the ordination, but the function tries to optimize the location of the text labels to minimize overplotting text. The function may be useful with moderately crowded ordination plots.
的功能ordipointlabel协调图点和文本标签的点。这些点是在给定的准确位置由协调,但该函数尝试优化以尽量减少overplotting文本的文本标签的位置。中度拥挤的协调图的功能可能是有用的。


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


ordipointlabel(x, display = c("sites", "species"), choices = c(1, 2),
   col = c(1, 2),  pch = c("o", "+"), font = c(1, 1),
   cex = c(0.8, 0.8), add = FALSE, select, ...)



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

参数:x
A result object from ordination.  
从协调的一个结果对象。


参数:display
Scores displayed in the plot.  
在图中显示的成绩。


参数:choices
Axes shown.  
轴所示。


参数:col, pch, font, cex
Colours, point types, font style and character expansion for each kind of scores displayed in the plot. These should be vectors of the same length as the number of items in display.
颜色,点类型,字体样式和各种分数的图中显示的字符扩展。这些应该是在display的项目的数目相同的长度的向量。


参数:add
Add to an existing plot.  
添加到现有图。


参数:select
Items to be displayed.  This can either be a logical vector which is TRUE for displayed items or a vector of indices of displayed items. select is only used if a single set of scores is being plotted (i.e. length(display) == 1), otherwise it is ignored and a warning issued. If a logical vector is used, it must have the same length as the scores plotted.
要被显示的资料。这可以是一个逻辑向量TRUE显示的项目或显示项目的矢量的索引。 select如果只使用一个单一的分数被绘制(即length(display) == 1),否则它被忽略,并发出警告。如果一个逻辑矢量被使用,它必须具有相同的长度作为绘制的分数。


参数:...
Other arguments passed to points and text.
其他参数传递给points和text。


Details

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

The function uses simulated annealing (optim, method = "SANN") to optimize the location of the text labels to the points. There are eight possible locations: up, down, sides and corners. There is a weak preference to text right above the point, and a weak avoidance of corner positions. The exact locations and the goodness of solution varies between runs, and there is no guarantee of finding the global optimum. The optimization can take a long time in difficult cases with a high number of potential overlaps. Several sets of scores can be displayed in one plot.
该功能使用模拟退火(optim,method = "SANN")优化的文本标签的点的位置。有八种可能的位置:向上,向下,边和角。是一个弱偏好的文本右点之上,而一个弱避免角位置。的确切位置和善良的解决方案之间运行,并有没有发现全球最佳的保证。优化可能需要很长的时间,在困难的情况下,大量潜在的重叠。积于一身,可显示多套的分数。

The function is modelled after pointLabel in maptools package (which has chained dependencies of S4 packages).
的功能是仿照pointLabelmaptools包(链S4包的依赖)。


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

The function returns invisibly an object of class ordipointlabel with items xy for coordinates of points, labels for coordinates of labels, items pch, cex and font for graphical parameters of each point or label. In addition, it returns the result of optim as an attribute "optim". The unit of overlap is the area of character "m", and with variable cex it is the smallest alternative. The result object inherits from orditkplot result, and can be replotted with its plot command. It may be possible to further edit the result object with orditkplot, but for good results it is necessary that the points span the whole horizontal axis without empty margins.
该函数返回不可见的对象的类ordipointlabel与项目xy点的坐标,labels标签的坐标,项目pch,cex和font的每一个点或标签的图形参数。此外,它返回的结果optim属性"optim"。单元的重叠的面积是的字符"m",并与变量cex,它是最小的替代。结果对象继承自orditkplot的结果,可以重新绘制它的plot命令。它可能会进一步编辑与orditkplot的结果对象,但为良好的结果,这是必要的,该点无空边缘跨越整个横轴。


注意----------Note----------

The function is designed for ordination graphics, and the optimization works properly with plots of isometric aspect ratio.
的功能是专为配合图形,正常工作和优化与等距方面比图。


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


Jari Oksanen



参考文献----------References----------

<h3>See Also</h3>   <code>pointLabel</code> for the model

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


data(dune)
ord <- cca(dune)
ordipointlabel(ord)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-27 04:27 , Processed in 0.022094 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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