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

R语言 rysgran包 rysgran.ternary()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-29 21:13:16 | 显示全部楼层 |阅读模式
rysgran.ternary(rysgran)
rysgran.ternary()所属R语言包:rysgran

                                        Generates the Ternary Diagrams of Shepard and Pejrup
                                         Shepard和Pejrup生成三元图

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

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

Uses data from percentages of soil textures to generate ternary diagrams of Shepard (Shepard, 1954) and Pejrup (Pejrup, 1988)  
使用数据从土壤质地百分比以生成三元图谢泼德(谢泼德,1954)和Pejrup(Pejrup,1988)


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


rysgran.ternary(x = NULL, method = "shepard", lang = "en-US",
    main= NULL, z= NULL, show.labels=FALSE, label.points=FALSE,
    labels = NULL, axis.labels = NULL, show.names = TRUE,
    show.lines = TRUE, show.legend = TRUE, show.grid = FALSE,
    z.cex.range= NULL, cex.labels= 1, cex.points=1, cex.axis=1,
    cex.names = 0.8, col.names = "gray2", col = "black",
    col.labels= "black", col.axis= "black", col.lines= "black",
    col.grid = "gray", pos = 1, pch = 1, lty.grid = 3, ...)



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

参数:x
  a 3 columns matrix with percentages of Sand, Silt and Clay which should be passed by class.percent function. The sum of each row must be 100 or 1, otherwise there may be distortions in the position of the points   
3列的矩阵比例的沙,淤泥和粘土应通过class.percent功能。每行的总和必须是100或1,否则有可能出现扭曲的点的位置


参数:method
  shape of ternary diagram to be created. Should be "shepard" or "pejrup". Default is "shepard"   
三元图的形状以被创建。应该是“谢泼德”或“pejrup”的。默认值是“谢泼德”


参数:lang
  language . Should be English ("en-US", "en-GR", "eng", "e"), or Portuguese ("pt-BR", "pt-PT", "port", "p"). The default is "en-US"   
语言。应该是(“EN-US”,“EN-GR”,“英文”,“E”),或葡萄牙语(“PT-BR”,“PT-PT”,“港口” ,的“p”)。默认值是“EN-US”


参数:main
  an overall title for the plot. If NULL it will be generated an automatic title according to language chosen. Default is NULL   
总冠军的图。如果为NULL,它会产生一个自动根据所选择语言的标题。默认值是NULL


参数:z
  vector with the same length of x and y whose value must be used to define the points expansion factor and color (bubble plot). If NULL, a simple plot is drawn (no 'bubbles'). Default is "NULL"   
向量具有相同长度的x和y的值必须被用来定义的点扩展因子和颜色(气泡图)。如果为NULL,绘制一个简单的图(没有泡沫)。默认值是“NULL”


参数:show.labels
  logical. If TRUE the points are replaced by text passed by labels argument. Default is FALSE   
逻辑。如果为true,点替换用文本通过labels参数的。默认是false。


参数:label.points
  logical. if TRUE text is added, provided by the argument labels, with the points on the graph. the text position to the point should be changed by argument pos. labels.points will be automatically FALSE if show.labels is TRUE. The default is FALSE   
逻辑。如果真正的文本将被添加,所提供的参数labels,在图上的点。文本位置的点应该改变的参数pos。 labels.points将自动FALSE如果show.labels是TRUE。默认值是FALSE


参数:labels
  a character vector or expression specifying the text to be written. If NULL labels will be the row names of the data argument. Default is NULL   
字符向量或表达式,指定要写入的文字。如果为NULL labels行data参数的名称。默认值是NULL


参数:axis.labels
  vector of length 3 with the soil textures names. If NULL the names are taken from the matrix of percentages. Default is NULL   
矢量的长度与土壤质地名称。如果为NULL的名称采取从矩阵百分比。默认值是NULL


参数:show.names
  logical. If TRUE the textural classes names will show up in the ternary diagram according with the method argument. Should be used with the  argument show.legend. Default is TRUE   
逻辑。如果为true,纹理类的名字将出现在三元相图,根据与method参数。应该使用参数show.legend。默认值是TRUE


参数:show.lines
  logical. If TRUE the lines that separate the textural classes are displayed. Default is TRUE   
逻辑。如果是TRUE的行分离的纹理类的显示方式。默认值是TRUE


参数:show.legend
  logical. If TRUE the legend of textural classes are displayed in the top left according with the argument method. Should be used with the argument show.names. Default is TRUE   
逻辑。如果为true,传说中的纹理类都显示在上面留下了参数method。应该使用参数show.names。默认值是TRUE


参数:show.grid
  logical. If TRUE display grid lines in the ternary diagram. Default is FALSE   
逻辑。如果是TRUE显示网格线的三元相图。默认是false。


参数:z.cex.range
  Vector of length 2. Minimum and maximum 'cex' of the bubbles plotted if 'z' is not NULL. Replace the argument cex.points. Default is "(1,3)"   
向量的长度为2。绘制的最小和最大的CEX的气泡,如果不为NULLZ。更换的说法cex.points。默认值是“(1,3)”


参数:cex.labels
  character size of text provided by the argument labels added with the point (or replacing it) in case show.label, label.points or z arguments are defined. Default is "1"   
字符大小参数labels添加点(或更换)的情况下show.label,label.points或z参数的定义所提供的文本。默认为“1”


参数:cex.points
  character size of points provided by the argument pch. Default is "1"   
提供参数pch点的字符大小。默认为“1”


参数:cex.axis
  character expansion for axis labels. Default is "1"   
轴标签的字符扩展。默认为“1”


参数:cex.names
  character size of  text of textural classes text which composes the ternary diagram according to method argument. Default is "1"   
文本字符大小的纹理类的文字组成的三元相图,根据method参数。默认为“1”


参数:col.names
  text color of textural classes which composes the ternary diagram if the argument show.names is TRUE. Default is "gray"   
文本颜色,纹理类的说法show.names组成的三元相图,如果是TRUE。默认是“灰色”


参数:col
  symbol color used in pch argument if the argument show.labels is FALSE. Default is "black"   
符号中使用的颜色pch参数,如果该参数show.labels是FALSE。默认是“黑”


参数:col.labels
  text color of labels if the arguments show.label, label.points or z are defined. Default is "black"   
文本颜色labels如果参数show.label,label.points或z的定义。默认是“黑”


参数:col.axis
  text color of axis labels. Default is "black"   
轴标签的文本颜色。默认是“黑”


参数:col.lines
  color of lines that separate the textural classes case the argument show.lines is TRUE. Default is "black"   
颜色的线分开的纹理类的说法show.lines是TRUE。默认是“黑”


参数:col.grid
  color of grid lines case the argument show.grid is TRUE. Default is "gray"   
网格线颜色的情况下,参数show.grid是TRUE。默认是“灰色”


参数:pos
  a position specifier for the text. Values of 1, 2, 3 and 4, respectively, indicate positions below, to the left of, above and to the right of the specified coordinates. Default is "1"   
一个位置的文字说明。值的1,2,3和4,分别表示的位置下面的左边,在指定的坐标的上方和右侧的。默认为“1”


参数:pch
  either an integer specifying a symbol or a single character to be used as the default in plotting points. Default is "1"   
一个整数,指定一个符号或一个单一的字符被用来作为默认情况下,在绘制点。默认为“1”


参数:lty.grid
  type of grid line case the argument show.grid is TRUE. Default is "3"   
类型的网格线的情况下,参数show.grid是TRUE。默认值是“3”


参数:...
  further graphical parameters   
进一步的图形参数


Details

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

When z argument is used to draw bubble plots the legend.bubbles function should be used to draw the legend accordingly  
当z参数是用来绘制气泡图legend.bubbles函数应该被用来绘制相应的传说


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

Display a triangular plot  
显示一个三角图


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

rysgran.ternary can only properly display one or more sets of three proportions (sand, silt and clay) that each sum to 1 (or percentages that sum to 100), otherwise they will not plot properly and the user will be notified. Samples with considerable amount of gravel are not properly plotted. rysgran.ternary is based on plotrix package and depends on soiltexture package  
rysgran.ternary只能正常显示一组或多组3的比例(沙,淤泥和粘土),每个总和为1(或百分比总和为100),否则他们不会画出正确的用户将收到。沙石大量的样品不正确绘制。 rysgran.ternary是根据plotrix包,并取决于soiltexture包


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



Eliandro R. Gilbert (<a href="mailto:eliandrogilbert@gmail.com">eliandrogilbert@gmail.com</a>)




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




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

gran.stats , class.percent , rysgran.ternary , rysgran.hist, legend.bubbles
gran.stats,class.percent,rysgran.ternary,rysgran.hist,legend.bubbles


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



library(rysgran)
data(camargo2001)
data(sed.phi)

#Shepard diagram[谢泼德图]
percent <- class.percent(camargo2001, mode="total")
x&lt;-percent[2:4] #choosing only the 'sand', 'silt' and 'clay' columns[选择“沙”,“淤”和“粘土”列]
rysgran.ternary  (x, method = "shepard")


#Pejrup diagram[Pejrup图]
percent <- class.percent(camargo2001, mode="total")
x&lt;-percent[2:4] #choosing only the 'sand', 'silt' and 'clay' columns[选择“沙”,“淤”和“粘土”列]
rysgran.ternary  (x, method = "pejrup")


#Shepard diagram with show.labels[谢泼德图show.labels]
percent <- class.percent(camargo2001, mode="total")
x<-percent[2:4]
rysgran.ternary (x, method="shepard", show.labels = TRUE)


#Pejrup diagram with Sorting as bubbles for different environments[针对不同的环境,如气泡排序Pejrup图]
#Calculating the percentage of weight in each textural class[的重量百分比计算在每个纹理类]
percent <- class.percent(sed.phi, mode="total")
x<-percent[2:4]

# Calculating the grain size statistics[计算的晶粒尺寸统计]
rys <- gran.stats(sed.phi , method="folk")
env<- as.factor(rep(c("River","Tidal Flat","Subtidal","Beach"),each=10))

# Plotting[绘图]
rysgran.ternary (x, method = "pejrup",
        z = rys$Sorting, z.cex.range = c(0.5,3),
        col = c("red","blue","black","brown")[env], pch = 19)

# Plotting the legends[绘制的传说]
legend.bubbles ("right", z=rys$Sorting , nleg=4, pch=21, col="black",
        cex=1, z.cex.range=c(0.5,3), x.intersp=1.2, y.intersp=1.2,
        digits=1, title="Sorting")

legend ("topright", c("Beach","River","Subtidal","Tidal Flat"),
        pch=15, col=c("red","blue","black","brown"))


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-28 22:52 , Processed in 0.030526 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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