rysgran.plot(rysgran)
rysgran.plot()所属R语言包:rysgran
Generates a Bivariated Plot
生成一个Bivariated图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
rysgran.plot generates a bivariated plot of grain size statistical parameters passed by gran.stats function
rysgran.plot产生一个bivariated的图的通过gran.stats功能的粒度统计参数
用法----------Usage----------
rysgran.plot(x = NULL, y = NULL, data = NULL, output = "phi", lang = "en-US",
method= "folk", main = NULL, xlab = NULL, ylab = NULL,
show.labels = FALSE, label.points = FALSE, pch = 1,
col.labels = "black", labels = NULL, col = "black",
cex.labels = 1, cex.points=1,
pos = 1, z.cex.range = NULL, z = NULL, ...)
参数----------Arguments----------
参数:x
the x coordinates of points in the bivariate plot. The value should be presented in quotation marks. Abbreviations are accepted in upper and lower case as well as the full name of the variable, independent of the chosen language. Examples of accepted values are: "mean", "Mean", "Sorting", "sorting", "sort", "Sort", "Skewness", "skewness", "Skew", "skew", "Kurtosis", "kurtosis", "Kurt", "kurt". The same logic applies to the Portuguese language, including the accent
的x坐标点的二元图的。该值应在引号中。缩略语接受大写和小写的全名以及独立的变量,所选择的语言。可接受值的例子是:“是什么意思”,“中庸”,“排序”,“排序”,“排序”,“排序”,“偏态”,“偏态”,“扭曲” ,“扭曲”,“峰度”,“峰度”,“库尔特”,“库尔特”。同样的逻辑也适用于,包括口音的葡萄牙语
参数:y
the y coordinates of points in the bivariated plot. Has the same prerequisites for the argument x
y坐标点在bivariated的图。有相同的先决条件参数x
参数:data
a data matrix with grain size samples similar to the camargo2001 matrix in which each column contains the weight (in grams) of each mesh size (in phi or micrometers) and the lines represent the samples
晶粒尺寸样品类似于camargo2001矩阵,其中的每一列包含的重量(以克计)的每个网眼尺寸(在披或微米)和线的数据矩阵表示的样品
参数:output
output result scale. Could be output="phi" for logarithmic scale or output="metric" for geometric scale. The default is "phi"
输出结果的规模。可能是output="phi"为对数刻度或output="metric"的几何尺度。默认值是“披”
参数: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”
参数:method
statistical analysis method. Could be method="folk" (Folk & Ward, 1957), method="moment" (Tanner, 1995), method="otto" (Otto, 1939), method="trask" (Trask, 1930), method="mcA" and method="mcB" (McCammon, 1962). Default is method="folk"
统计分析的方法。可以method="folk"(民间和沃德,1957年),method="moment"(丹,1995年),method="otto"(德国,1939年),method="trask"(斯克,1930年), method="mcA"和method="mcB"(麦坎蒙,1962年)。默认是method="folk"
参数: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
参数:xlab
a title for the x axis. If NULL it will be generated an automatic title according to language chosen. Default is NULL
一个标题为x轴。如果为NULL,它会产生一个自动根据所选择语言的标题。默认值是NULL
参数:ylab
a title for the y axis. If NULL it will be generated an automatic title according to language chosen. Default is NULL
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
参数:pch
Either an integer specifying a symbol or a single character to be used as the default in plotting points. Default is "1"
无论是一个整数,指定一个符号或一个单一的字符被用来作为默认情况下,在绘制点。默认为“1”
参数:col.labels
color of text if the arguments show.label, label.points or z are defined. Default is "black"
文字的颜色参数show.label,label.points或z的定义。默认是“黑”
参数: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
参数:col
symbol color used in pch argument. Default is "black"
符号pch参数中使用的颜色。默认是“黑”
参数: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”
参数: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”
参数: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)”
参数: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”
参数:...
further graphical parameters
进一步的图形参数
Details
详细信息----------Details----------
The data matrix provided to data argument should be similar to the camargo2001 matrix in which each column contains the weight (in grams) of each mesh size (in phi or micrometers) and the lines represent the samples. rysgran.plot uses the gran.stats function to calculate grain size statistical parameters according to the analysis method chosen by method argument. When z argument is used to draw bubble plots the legend.bubbles function should be used to draw the legend accordingly
数据矩阵提供给data参数应该是相似的camargo2001矩阵,其中的每一列包含的重量(以克计)的每个网眼尺寸(在披或微米)的线表示样品。 rysgran.plot使用gran.stats函数根据的method参数选择的分析方法,计算粒度统计参数。当z参数是用来绘制气泡图legend.bubbles函数应该被用来绘制相应的传说
值----------Value----------
return a bivariated plot
返回bivariated图
注意----------Note----------
rysgran.plot depends on the package 'soiltexture'
rysgran.plot取决于上包“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)
# Plot Mean and Sorting[图平均值和排序]
rysgran.plot ("mean", "sort", data=camargo2001, output="phi", method="folk")
# Using show.labels[使用show.labels]
rysgran.plot("mean" , "sort" , data=camargo2001 , method="folk",
show.labels = TRUE, labels = NULL)
# Skewness and Kurtosis with label.points[偏度和峰度label.points]
rysgran.plot ("skew" , "kurt" , data=camargo2001, output="phi",
method="folk", show.labels = FALSE, labels = NULL,
label.points = TRUE, pch = 19, col.labels = "black",
col = "blue", cex.labels = 1, cex.points = 1, pos=1)
# Mean and Sorting with Kurtosis as bubbles[平均和排序与峰度气泡]
# Calculating the grain size statistics[计算的晶粒尺寸统计]
rys <- gran.stats(camargo2001, method="folk")
# Plotting[绘图]
rysgran.plot ("mean" , "sort" , data=camargo2001, method="folk", pch = 21,
col = "red", z=rys$Kurtosis, z.cex.range=c(1,3),bg="red")
# Plotting the legend[绘制的传说]
legend.bubbles ("bottomright", z=rys$Kurtosis , nleg=3, pch=21, col="black",
z.cex.range=c(1,3), x.intersp=1.3, y.intersp=1.3, digits=1, title="Kurtosis")
# Mean and Sorting with Skewness as bubbles for different environments[平均和不同的环境中气泡与偏度排序]
# 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.plot ("mean" , "sort" , data=sed.phi, method="folk", pch = 19,
col = c("red","blue","black","brown")[env], z=rys$Skewness, z.cex.range=c(1,3))
# Plotting the legends[绘制的传说]
legend.bubbles ("bottomright", z=rys$Skewness , nleg=3, pch=21, col="black",
z.cex.range=c(1,3), x.intersp=1.3, y.intersp=1.3, digits=1, title="Skewness")
legend ("bottomleft", c("Beach","River","Subtidal","Tidal Flat"),
pch=15, col=c("red","blue","black","brown"))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|