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

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

[复制链接]
发表于 2012-9-30 12:09:55 | 显示全部楼层 |阅读模式
plotlowertri(spaa)
plotlowertri()所属R语言包:spaa

                                        Plotting lower semi matrix
                                         绘制下半矩阵

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

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

Function for plotting lower semi matrix. These plots are often used to illustrate the relationship in Pearson's correlation, similarity or dissimilarity index between sites or species.
下半矩阵用于绘图功能。这些图也常常用于在Pearson相关,相似性或不相似性索引网站或物种之间的关系来说明。


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


plotlowertri(input, valuename = "r",
pchlist = c(19, 17, 15, 1, 5, 2, 7), interval = 6,
cex = 1, ncex = 1, int =1.2, add.number = TRUE,
size = FALSE, add.text = FALSE, show.legend = TRUE,
digits = 2)




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

参数:input
The input data, often the results of correlation matrix, can also be class dist object.
input的数据,通常的相关矩阵的结果,也可以是类dist对象。


参数:valuename
Value name that will be used in the legend.
值名称,将用于在传说中。


参数:pchlist
The types of point shape to plot see pch par().  
点状的类型,绘制看到pch par()。


参数:interval
Number of intervals to illustrate the shape of points
示出的形状的点的间隔数


参数:cex
Point size
点大小


参数:ncex
Text size for the add.number, which appeared at the top of each column.
文字大小的add.number,出现在每一列的顶部。


参数:int
Row space between lines in legend
传说中的行之间的行空间


参数:add.number
Species number for each column.
每列的物种数量。


参数:size
Whether the size of points would change according to value.
点的大小是否会改变价值。


参数:add.text
To add value to the grid.
要添加到电网的价值。


参数:show.legend
Whether the legend should be drawn.
是否应该得出的传说。


参数:digits
Number of digits of for each interval
每个间隔的数字位数


Details

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

If the matrix contains less than 15 rows/columns, you may have to adjust the row space between the text lines in the legend, using argument int. Data in class dist can be include, and will be converted to matrix at first internally.
如果矩阵包含不到15行/列,你可以调整行间距传说中的文本行,使用参数int。数据类dist可以包括,和首先在内部将被转换为矩阵。

The lower matrix plot illustrating Pearson's Correlation between each pair of species. Note some value didn't appeared in the plots, may have appeared the legend. This is due to the distribution of data. Be careful in selection of intervals. In this situation you may set show.legend = FALSE, and add the legend manually. This may be fixed in the future.
每个物种对之间的Pearson相关性较低的矩阵图说明。注意:有些值没有出现在图中,可能出现的传说。这是由于数据的分布。请注意在选择的时间间隔。在这种情况下,你可以设置show.legend = FALSE,和手动添加的传说。这可能是固定的未来。


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

lower matrix plot
较低的矩阵图


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



Jinlong Zhang <a href="mailto:jinlongzhang01@gmail.com">jinlongzhang01@gmail.com</a>




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

Zhang Qiaoying, Peng Shaolin, Zhang Sumei, Zhang Yunchun, Hou Yuping.(2008). Association of dormintant species in Guia hill Municipal Park of Macao. Ecology and Environment. 17:1541-1547

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

See Also plotnetwork
请参见plotnetwork


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


data(testdata)
spmatrix <- data2mat(testdata)
result <- sp.pair(spmatrix)

## Check the legend for 0.00 to 0.33 (Unwanted label)[#查看相传为0.00~0.33(不想要的标签)]
plotlowertri(result$Pearson, int = 0.5, cex=1.5)
title("Pearson Correlation Lower Matrix Plot")

## Change the size of points and reset the intervals.[#改变点的大小和复位的时间间隔。]
## Warning: The lower matrix plot illustrating Pearson [警告:较低的矩阵图说明皮尔逊]
## Correlation between each pair of species. Note the [#每个物种对之间的相关性。请注意]
## triangle didn't appeared in the plots, but have been [#三角形没有出现在图,但一直]
## added to the legend. This is due to the distribution [#添加的传说。这是由于分布]
## of data. Be careful in selection of intervals.[#数据。请注意在选择的时间间隔。]


plotlowertri(result$Pearson, int = 0.5, cex=1.5,
interval = 4, pchlist = c(19, 17, 15, 1, 5), size = TRUE)

title("Pearson Correlation Lower Matrix Plot")

## "Pure" dots, may have to add legend manually...[#“纯”点,可能必须手动添加传说...]
plotlowertri(result$Pearson, int = 0.5, cex=2.5,
interval = 4, pchlist = rep(19, 5), size = TRUE,
show.legend = FALSE)

title("Pearson Correlation Lower Matrix Plot")


## Using BCI data[#使用BCI数据]
library(vegan)
data(BCI)
## select the top 30 species according to relative frequency.[#根据相对频率,选择最上面的30种。]
sub <- sub.sp.matrix(BCI, common = 30)
## Original [#原]
plotlowertri(cor(sub))

## Change size[#改变大小]
plotlowertri(cor(sub), size = TRUE, cex = 3)

## Set the digits to 1[#设置为1位数]
plotlowertri(cor(sub), size = TRUE, cex = 3, digits = 1,
ncex = 0.7)



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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-10 02:49 , Processed in 0.024915 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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