TT.plot(soiltexture)
TT.plot()所属R语言包:soiltexture
Plot soil texture triangles / diagrams.
图土壤质地三角形/图表。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plot a soil texture triangle (also called soil texture
绘制土壤质地三角形(也称为土壤质地
diagrams, or soil texture ternary plots), with or without
图,或土壤质地三元图),有或没有
background soil texture classes boundaries, and with or without
背景土壤质地类边界,以及有或没有
soil texture data points. The triangle geometry depends on the
土壤质地的数据点。的三角形的几何形状取决于
soil texture classification system chosen ('class.sys' argument)
选择土壤质地分类系统(“class.sys”的说法)
or on 'forcing' parameters (see below).
或“强迫”参数(见下文)。
Both the boundaries of the background texture classification
背景纹理分类的边界
system and the texture data points can be transformed from
系统和肌理数据点可以转化
one particle size limits system to another (the particle size
一个颗粒的大小限制系统到另一个系统(粒径
limits system of the plot). Default behaviour is no transformation
限制系统的图)。默认行为是没有改造
(set 'css.transf' argument to TRUE to allow transformation).
(“css.transf的参数设置为TRUE,以允许转型)。
There are 3 different way to set the triangle geometry and
有3种不同的方式来设置的三角形的几何形状和
characteristics (1) setting the 'class.sys' argument [lowest
特点(1)设置“class.sys”的说法最低
priority], (2) changing one or several values of the 'geo'
优先](2)改变一个或多个值的“GEO”
list of arguments or (3) setting the corresponding arguments
参数列表,或(3)设置相应的参数
of TT.plot() [highest priority]. These arguments are "blr.clock",
TT.plot()[最高优先级。这些论点“blr.clock”,
"tlr.an", "blr.tx", "text.sum", and "base.css.ps.lim". Different
“tlr.an”中,“blr.tx”中,“text.sum”,和“base.css.ps.lim”。不同
geometry arguments can be set at different levels (1, 2 or 3).
几何参数可以被设置在不同的水平(1,2或3)。
Case (1) should be used when one wants to use the 'default' triangle
案例(1)时,应使用人愿意使用“默认”三角
geometry associated with a given texture classification system
与一个给定的纹理分类系统的几何
(chosen with the 'class.sys' argument). Case (2) should be used
(与“class.sys”参数选择)。案例(二)应使用
when TT.plot() has been called previously, with a call like
被称为时TT.plot()之前,用类似这样的调用
geo <- TT.plot(), so the 'geo' object returned can be used
地缘< - TT.plot(),所以“地缘”返回的对象可以使用
for setting the geometry of a new texture triangle TT.plot(
用于设定一个新的纹理三角形TT.plot的几何形状(
geo = geo ) identical to the previous one. Case (3) should be
GEO GEO)与前一个相同。应该是案例(3)
used whenever the user wants to set the geometry of a texture
每当用户想要设置的几何形状的一个纹理使用
triangle plot different from default values of the texture
三角形图不同的纹理的默认值
classification system chosen, and without re-using the geometry
选择分类系统,并在不重新使用的几何形状
from a previous plot.
从以前的图。
ON DEFAULT VALUES OF TT.plot() ARGUMENTS? As TT.plot() shares
TT.plot()参数的默认值?作为TT.plot(股)
its arguments with many other functions, their default value
它的参数与许多其他的功能,它们的默认值
is not defined in TT.plot() source code, but rather in
TT.plot()的源代码中没有定义,而是在
a dedicated list object called 'TT.par' and stored in the
称为TT.par,并存储在一个专用的列表对象
environment TT.env. The function TT.get() is used to retrieve
环境TT.env。的的功能TT.get()用于检索
the default value of the arguments defined in TT.par (see
在TT.par定义的参数的默认值(见
?TT.get). For instance, to know the default value of 'class.sys',
?TT.get)。例如,要知道的默认值“class.sys”的,
you can type TT.get("class.sys"). To set a different default
你可以输入TT.get(“class.sys)。要设置不同的默认
value for a given argument in R, use TT.set() (see ?TT.set).
在R给定的参数值中,使用TT.set()(见TT.set)。
For instance to change the default value of 'class.sys', type
例如要更改默认值“class.sys”,
TT.set( "class.sys" = "USDA.TT" ).
TT.set(“class.sys”=“USDA.TT”)。
用法----------Usage----------
TT.plot(geo = NULL,
tri.data = NULL,
add = FALSE,
css.names = NULL,
z.name = NULL,
main = NULL,
blr.tx = NULL,
css.lab = NULL,
text.sum = NULL,
base.css.ps.lim = NULL,
tri.css.ps.lim = NULL,
dat.css.ps.lim = NULL,
css.transf = NULL,
text.transf.fun = NULL,
trsf.add.opt1 = NULL,
trsf.add.opt2 = NULL,
unit.ps = NULL,
unit.tx = NULL,
blr.clock = NULL,
tlr.an = NULL,
font = NULL,
font.axis = NULL,
font.lab = NULL,
font.main = NULL,
bg = NULL,
fg = NULL,
col = NULL,
col.axis = NULL,
col.lab = NULL,
col.main = NULL,
cex = NULL,
cex.axis = NULL,
cex.lab = NULL,
cex.main = NULL,
lwd = NULL,
lwd.axis = NULL,
lwd.lab = NULL,
family.op = NULL,
frame.bg.col = NULL,
at = NULL,
grid.show = NULL,
grid.col = NULL,
grid.lty = NULL,
class.sys = NULL,
class.lab.show = NULL,
class.lab.col = NULL,
class.line.col = NULL,
class.p.bg.col = NULL,
class.p.bg.hue = NULL,
arrows.show = NULL,
arrows.lty = NULL,
points.type = NULL,
pch = NULL,
z.type = NULL,
z.col.hue = NULL,
z.cex.range = NULL,
z.pch = NULL,
text.tol = NULL,
tri.sum.tst = NULL,
tri.pos.tst = NULL,
b.lim = NULL,
l.lim = NULL,
lang = NULL,
new.mar = NULL,
new.centroid = TRUE)
参数----------Arguments----------
参数:geo
List. 'geo' is one of the 3 way to set the texture triangle geometry. See there description and hierarchy in the function description. If geo != NULL, then geo must be a list containing 1 or several of the following items: "blr.clock", "tlr.an", "blr.tx", "text.sum", and "base.css.ps.lim". See the options with the same name for a description of the expected values and effects. The list can be created manually (like list( "text.sum" = 1000 ) ), or taken from the output of a previous call to TT.plot(), TT.baseplot() or TT.geo.get() (that return a 'geo' list).
列表。 “GEO”的方式来设置纹理的三角形几何之一。见有描述和层次结构中的功能描述。如果GEO!= NULL,然后GEO必须是一个列表,包含以下项目:“blr.clock”,“tlr.an”中,“blr.tx”,“text.sum”1个或数,和“base.css.ps.lim”。查看选项的预期值和效果的说明,具有相同的名称。该列表可以手动创建(如列表(“text.sum”= 1000)),或从以前的调用的输出TT.plot(),TT.baseplot()或TT.geo.get() (返回一个“GEO”列表)。
参数:tri.data
Data frame. Data frame containing the CLAY, SILT and SAND 'coordinates' of the texture data points to be plotted on top of the texture triangle and texture class boundaries. The data frame can contain more column than needed (ignored). The data frame must have column named CLAY, SILT and SAND (uppercase, the order has no importance) or named after the 'css.names' argument (alternative names). If 'z.name' argument is not NULL, the data frame must also contain a column named after 'z.name' value. The sum of CLAY, SILT and SAND must be equal to 'text.sum' ('text.tol' determines the error tolerance).
数据框。数据框包含的粘土,淤泥和沙子坐标的纹理数据点被绘制在顶部三角形的纹理和质感一流的边界。数据框可以包含多个列(忽略)。数据框必须有列命名为粘土,淤泥和沙子(大写字母的顺序并不重要)或命名后“css.names”参数(备选名称)。 “z.name”的说法是不为NULL,还必须包含一列的数据框的名字命名的“z.name值。粘土,淤泥和沙子的总和必须等于text.sum“(”text.tol“确定的容错)。
参数:add
Single logical. If FALSE, a new plot is created. If FALSE, the plot is added to the existing one.
单一的逻辑。如果为FALSE,创建一个新的绘图。如果为FALSE,该图将被添加到现有的。
参数:css.names
Vector of 3 character strings. Name of the columns in 'tri.data' that contains the CLAY SILT and SAND values, respectively. If NULL, default c("CLAY","SILT","SAND") value is assumed. Not to be confused with 'css.lab' that defines the labels of the CLAY SILT and SAND axes in the plot.
向量的3个字符的字符串。黏土质粉沙,沙值,分别包含“tri.data中的列的名称。如果为NULL,默认的c(“土”,“淤”,“沙”)的值是假定的。为了不被混淆与“css.lab定义标签的黏土质粉沙和沙轴的图。
参数:z.name
Single character string. Name of the column in 'tri.data' that contains the '4th quantitative variable' whose value must be used to define the points expansion factor and color (bubble plot). If NULL, a simple plot is drawn (no 'bubbles')
单字符的字符串。名称列在tri.data包含4次定量变量“的值必须被用来定义的点扩展因子和颜色(气泡图)。如果为NULL,一个简单的图拉(没有“泡沫”)
参数:main
Single character string or expression. Main title of the plot.
单字符的字符串或表达式。主标题的图。
参数:blr.tx
Vector of 3 character strings. The 1st, 2nd and 3rd values must be either CLAY, SILT or SAND, and determines the particle size classes associated with the BOTTOM, LEFT and RIGHT axis, respectively. CLAY, SILT and SAND order in the vector is free, but they should all be used one time. The CLAY, SILT and SAND names must appear whatever the corresponding columns names in 'tri.data' (eventually set by 'css.names') and whatever the labels of the axis in the plot (eventually set by 'css.lab')
向量的3个字符的字符串。第1,第2和第3的值必须是粘土,粉土或沙子,确定的粒度关联的类的底部,左,右轴,分别。粘土,淤泥和沙子顺序的向量是免费的,但他们都应该使用一次。粘土,淤泥和沙子的名称必须出现在的“tri.data(最终由”css.names“)和任何轴的图(最终由”css.lab“的标签对应的列名)
参数:css.lab
Vector of 3 character strings or 3 expressions. The 1st, 2nd and 3rd values must be text strings or expressions, and determines the axes plot labels for the CLAY, SILT and SAND particle size classes, respectively. 'css.lab' values are independent from columns names in 'tri.data' (eventually set by 'css.names') and from whatever the placement of particle size classes on each axis (eventually set by 'blr.tx')
向量的3个字符的字符串或3的表达。第1,第2和第3的值必须是文本字符串或表达式,并,确定轴绘图标签,分别为粘土,淤泥和沙子的粒径类。 “css.lab的价值观是独立的列名”tri.data“(最终由”css.names“),并从任何放置在每个轴上的粒径类(最终由”blr.tx“)
参数:text.sum
Single numerical. Sum of the 3 particle size classes for each texture value (fixed). The real sum of the 3 particle size classes in 'tri.data' should be >= text.sum * (1-text.tol) OR <= text.sum * (1+text.tol), where 'text.tol' is an argument that can be changed. If some of the texture values don't match this requirement, an error occur (function fails) and TT.plot returns a of bad values with their actual particle size classes sum. You can 'normalise' you data table () prior to the use of TT.plot, by using the function TT.normalise.sum(), so all values match the 'text.sum' criteria. See also 'tri.sum.tst' that can be set to FALSE to avoid sum of particle size classes tests.
单一的数值。 3粒径为每个纹理值(固定)的类的总和。实际收入的3颗粒大小类在“tri.data”应该是> = text.sum *(1 text.tol)或<= text.sum的*(1 + text.tol),其中“文本。托尔“是一个参数,该参数是可以改变的。如果一些纹理值不符合此要求,出现错误()和函数将失败的TT.plot返回一个坏的价值观,用自己的实际颗粒尺寸大小的总和。您可以标准化你的数据表()之前到TT.plot使用,通过使用的功能TT.normalise.sum(),因此,所有的值匹配“text.sum”标准。参见“的tri.sum.tst”,可以设置为false,以避免颗粒大小类测试的总和。
参数:base.css.ps.lim
Vector of 4 numericals. Particle size boundaries (upper and lower) of the 3 particle size classes (CLAY, SILT and SAND, starting from the lower size of CLAY particles, 0, to the upper size of the SAND particles, 2000), in micrometers, FOR THE BASE PLOT. These particles size class limits are the references and all other texture values with different limits will be converted into that reference if (and only if) css.transf == TRUE (not default). If NULL, 'base.css.ps.lim' will be set to the default value of the texture classification system chosen ('class.sys'). The transformation function is set by 'text.transf.fun' and is a log-linear interpolation by default.
向量的4 numericals。粒子颗粒大小类(粘土,淤泥和沙子,从较低的粘土颗粒大小,0,大小的沙粒上,2000年),在微米大小的界限(上,下),对于基PLOT。不同的限制,这些粒子尺寸级别限制的引用和所有其他的纹理值将被转换成引用(且仅当)css.transf == TRUE(而不是默认值)。如果为NULL,base.css.ps.lim将被设置为默认值的纹理分类系统选择(class.sys)。变换函数被设置由text.transf.fun,缺省情况下,是一个对数 - 线性内插。
参数:tri.css.ps.lim
Vector of 4 numericals. Particle size boundaries (upper and lower) of the 3 particle size classes (CLAY, SILT and SAND, starting from the lower size of CLAY particles, 0, to the upper size of the SAND particles, 2000), in micrometers, FOR THE TEXTURE TRIANGLE. If not NULL, different from 'base.css.ps.lim', and css.transf == TRUE (not default), then the CLAY SILT and SAND coordinates of the texture triangle will be converted into the 'base.css.ps.lim' reference. If NULL, 'tri.css.ps.lim' will be set to the default value of the texture classification system chosen ('class.sys'). The transformation function is set by 'text.transf.fun' and is a log-linear interpolation by default.
向量的4 numericals。颗粒大小类(粘土,淤泥和沙子,从较低的粘土颗粒大小,0,大小的沙粒上,2000年),在微米的粒度范围(上限和下限),对于纹理三角形。如果不是NULL,从“base.css.ps.lim”,并css.transf不同== TRUE(而不是默认值),然后是黏土质粉沙和沙的纹理三角形的坐标将被转换成“base.css.ps林的参考。如果为NULL,tri.css.ps.lim将被设置为默认值的纹理分类系统选择(class.sys)。变换函数被设置由text.transf.fun,缺省情况下,是一个对数 - 线性内插。
参数:dat.css.ps.lim
Vector of 4 numericals. Particle size boundaries (upper and lower) of the 3 particle size classes (CLAY, SILT and SAND, starting from the lower size of CLAY particles, 0, to the upper size of the SAND particles, 2000), in micrometers, FOR THE TEXTURE DATA TABLE ('tri.data'). If not NULL, different from 'base.css.ps.lim', and css.transf == TRUE (not default), then the CLAY SILT and SAND coordinates of the texture data in tri.data will be converted into the 'base.css.ps.lim' reference. If NULL, 'tri.css.ps.lim' will be set to the default value of the texture classification system chosen ('class.sys'). The transformation function is set by 'text.transf.fun' and is a log-linear interpolation by default.
向量的4 numericals。颗粒大小类(粘土,淤泥和沙子,从较低的粘土颗粒大小,0,大小的沙粒上,2000年),在微米的粒度范围(上限和下限),对于纹理数据表(tri.data)。如果不是NULL,从“base.css.ps.lim”,并css.transf不同== TRUE(而不是默认值),然后是黏土质粉沙和沙坐标tri.data的纹理数据将被转换成“碱基。css.ps.lim参考。如果为NULL,tri.css.ps.lim将被设置为默认值的纹理分类系统选择(class.sys)。变换函数被设置由text.transf.fun,缺省情况下,是一个对数 - 线性内插。
参数:css.transf
Single logical. Set to TRUE to transform the texture coordinates of the texture triangle ('class.sys') or the texture data ('tri.data') into the base particle size class limits. See 'base.css.ps.lim' for the base plot particle size class limits, 'tri.css.ps.lim' for the triangle particle size class limits and 'dat.css.ps.lim' for the data table particle size class limits. The transformation function is set by 'text.transf.fun' and is a log-linear interpolation by default. The default value is FALSE, so no transformation is made.
单一的逻辑。设置为TRUE时,变换的纹理坐标的纹理三角形(class.sys)或纹理数据(tri.data)到基体颗粒大小级限制。请参阅“base.css.ps.lim”的基本图粒径级限制,的“tri.css.ps.lim”的三角形粒径类限制和的“dat.css.ps.lim”的数据表颗粒大小类的限制。变换函数被设置由text.transf.fun,缺省情况下,是一个对数 - 线性内插。默认值是FALSE,所以没有改造而成。
参数:text.transf.fun
R function with the same argument names and same output as the function TT.text.transf(). 'text.transf.fun' is the function that transform the texture values from one system of particle class size limits to another. Only used if css.transf == TRUE. Default value is text.transf.fun=TT.text.transf. See also 'base.css.ps.lim', 'tri.css.ps.lim' and 'dat.css.ps.lim'.
R的功能的的功能TT.text.transf()使用相同的参数名称和相同的输出。 “text.transf.fun的功能是,将纹理值从一个系统的颗粒级的大小限制到另一个。仅用于css.transf == TRUE。默认值是text.transf.fun = TT.text.transf。参见“base.css.ps.lim”,“tri.css.ps.lim”和“dat.css.ps.lim的。
参数:trsf.add.opt1
Non pre-defined format. If the user specifies its own texture transformation function in 'text.transf.fun' (not TT.text.transf()), then he can use 'trsf.add.opt1' and 'trsf.add.opt1' as new, additional, argument for his function. So the format of 'trsf.add.opt1' depends on the function defined by the user in 'text.transf.fun'.
非预定义的格式。如果用户指定自己的纹理变换功能“text.transf.fun”(,不TT.text.transf()),那么他就可以使用“trsf.add.opt1”和“trsf.add.opt1”作为新的,另外,他的功能参数。所以trsf.add.opt1的格式取决于由网站用户在text.transf.fun定义的功能。
参数:trsf.add.opt2
Non pre-defined format. If the user specifies its own texture transformation function in 'text.transf.fun' (not TT.text.transf()), then he can use 'trsf.add.opt1' and 'trsf.add.opt1' as new, additional, argument for his function. So the format of 'trsf.add.opt1' depends on the function defined by the user in 'text.transf.fun'.
非预定义的格式。如果用户指定自己的纹理变换功能“text.transf.fun”(,不TT.text.transf()),那么他就可以使用“trsf.add.opt1”和“trsf.add.opt1”作为新的,另外,他的功能参数。所以trsf.add.opt1的格式取决于由网站用户在text.transf.fun定义的功能。
参数:unit.ps
Single text string or expression. Unit of particle size class limits displayed on the plot (= part of the axis labels). Does not affect the other calculations. Default micrometers.
一个文本字符串或表达式。单位上显示图形(=轴标签的一部分)的粒径类的限制。不影响其他计算。默认微米。
参数:unit.tx
Single text string or expression. Unit of particle texture values displayed on the plot (= part of the axis labels). Does not affect the other calculations. Default is percentage.
一个文本字符串或表达式。单位的粒子纹理在图上显示的值(=轴标签的一部分)。不影响其他计算。默认的百分比。
参数:blr.clock
Vector of logicals, eventually with NA values. Direction of increasing texture values on the BOTTOM, LEFT and RIGHT axis, respectively. A value of TRUE means that the axis direction is clockwise. A value of FALSE means that the axis direction is counterclockwise. A value of NA means that the axis direction is centripetal. Possible combinations are c(T,T,T); c(F,F,F); c(F,T,NA) and c(T,NA,F), for fully clockwise, fully counterclockwise, right centripetal and left centripetal orientations, respectively.
向量的逻辑,最终NA值。在底部,左,右轴,分别增加纹理值的方向。值TRUE表示轴的方向为顺时针方向。值FALSE表示轴的方向为逆时针的。 NA值意味着轴的方向是向心的。可能的组合是c(T,T,T),C(F,F,F)C(F,T,NA)和c(NA,T,F),完全按顺时针方向,逆时针方向完全,右心和左心的方向。
参数:tlr.an
Vector of numericals. Value - in degrees - of the TOP, LEFT and RIGHT angles of the triangle. Any value between 0 and 90 is possible, but values belonging to 0 or 45 or 60 or 90 give a better graphical rendering.
向量的numericals。价值 - 度 - 顶部,左侧和直角的三角形。 0和90之间的任何值是可能的,但属于为0或45或60或90的值给一个更好的图形渲染。
参数:font
Single integer. Not used yet.
一个整数。尚未使用。
参数:font.axis
Single integer. Same definition as par("font.axis"). Font of the triangle axis's numbering.
一个整数。相同的定义与参数(“font.axis”)。字体的三角轴的编号。
参数:font.lab
Single integer. Same definition as par("font.lab"). Font of the triangle axis's labels.
一个整数。相同的定义与参数(“font.lab”)。三角形轴标签的字体。
参数:font.main
Single integer. Same definition as par("font.main"). Font of the triangle main title.
一个整数。相同的定义与参数(“font.main”)。三角形的主标题的字体。
参数:bg
Text string containing an R color code. Background color of the plot (= outside the triangle). See 'frame.bg.col' for the background color inside the triangle frame.
文本字符串,其中包含的R颜色代码。背景色的图(=外三角)。见frame.bg.col三角形内的帧的背景颜色。
参数:fg
Text string containing an R color code. DEPRECATED. foreground color of the plot (= point fill color).
文本字符串,其中包含的R颜色代码。已过时。前景色的图(点填充颜色)。
参数:col
Text string containing an R color code. Same definition as par("col"). Color of the points plotted in the triangle.
文本字符串,其中包含的R颜色代码。定义相同面值(“COL”)。绘制的点的颜色的三角形。
参数:col.axis
Text string containing an R color code. Color of the triangle's axis (line and tics) The color of the texture classes boundaries is set by 'class.line.col'.
文本字符串,其中包含的R颜色代码。三角形的轴(线和抽动)的纹理类的颜色边界的颜色被设置由class.line.col。
参数:col.lab
Text string containing an R color code. Color of the triangle's labels (text) and arrows. The color of the texture classes labels is set by 'class.lab.col'.
文本字符串,其中包含的R颜色代码。三角形的标签(文本)和箭头的颜色。纹理类标签的颜色被设置由class.lab.col。
参数:col.main
Text string containing an R color code. Color of the main title.
文本字符串,其中包含的R颜色代码。主标题的颜色。
参数:cex
Vector of numerical or single numerical. Same definition as par("cex"). Expansion factor for the points plotted on the triangle.
向量的数字或单一的数值。定义相同面值(CEX“)。扩展系数的点上的三角形绘制。
参数:cex.axis
Single numerical. Same definition as par("cex.axis"). Expansion factor for the axis tics labels (numbering).
单一的数值。相同的定义与参数(“cex.axis”)。轴的抽动标签(编号)的膨胀系数。
参数:cex.lab
Single numerical. Same definition as par("cex.lab"). Expansion factor for the axis labels AND the texture classes labels.
单一的数值。相同的定义与参数(“cex.lab”)。膨胀系数轴标签和纹理类的标签。
参数:cex.main
Single numerical. Same definition as par("cex.main"). Expansion factor for the main title.
单一的数值。相同的定义与参数(“cex.main”)。膨胀系数的主标题。
参数:lwd
Single numerical. Same definition as par("lwd"). Line width for the graphical elements inside the triangle (points plotted).
单一的数值。定义相同面值(“LWD”)。三角形内的点绘制的图形元素的线宽。
参数:lwd.axis
Single numerical. Same definition as par("lwd.axis"). Line width for the axis lines, tics and the grid lines inside the triangle.
单一的数值。相同的定义与参数(“lwd.axis”)。轴线,抽搐和内部的三角形的网格线的线宽。
参数:lwd.lab
Single numerical. Same definition as par("lwd"). Line width for the direction arrows.
单一的数值。定义相同面值(“LWD”)。线宽的方向箭头。
参数:family.op
Single text string. Same definition as par("family"). Font type to be used in the plot text elements (title, labels)
一个文本字符串。面值相同的定义(“家族”)。字体的类型,可以使用在图的文本元素(标题,标签)
参数:frame.bg.col
Text string containing an R color code. Background color of the triangle plot (= inside the triangle). See 'bg' for the background color outside the triangle frame.
文本字符串,其中包含的R颜色代码。背景颜色的三角图(在三角形内)。请参阅“BG”外三角框的背景色。
参数:at
Vector of numericals. Location of the grid line start points on all 3 triangles axis. At the moment values are identical for all 3 axis, and changes to that parameter have not been tested.
向量的numericals。在所有3个三角形轴的网格线的位置开始点。目前的值是相同的所有3个轴,并更改该参数没有经过测试。
参数:grid.show
Single logical. If set to TRUE (the default) a grid is drawn on the background of the texture triangle. Set to FALSE to remove the grid.
单一的逻辑。如果设置为TRUE(默认值)被绘制在一个网格的纹理三角形的背景。如果设置为FALSE删除网格。
参数:grid.col
Text string containing an R color code. Color of the grid lines. If equal to NULL, then an appropriate color is used. Appropriate means (i) if 'class.p.bg.col' is FALSE (no color gradient in texture class polygons), then grid.col is equal to 'bg' (without transparency) unless a color is specified for the triangle frame background ('frame.bg.col'), in which case grid.col is a mix of 'frame.bg.col' and 'col.axis'. (ii) if 'class.p.bg.col' is TRUE, then grid.col is a light or dark color based on 'class.p.bg.hue' (light if 'bg' is dark and dark if 'bg' is light).
文本字符串,其中包含的R颜色代码。的网格线的颜色。如果等于NULL,然后使用适当的颜色。适当的指(i),如果“class.p.bg.col是FALSE(没有颜色渐变纹理类的多边形),然后grid.col的是等于BG(不透明度),除非指定颜色的三角形框架背景(frame.bg.col),在这种情况下,grid.col是混合“frame.bg.col和col.axis。 (二),如果“class.p.bg.col是TRUE,那么grid.col的是或明或暗的颜色,根据的”class.p.bg.hue“(如果”的背景是黑暗的,黑暗的光“的背景“光)。
参数:grid.lty
Single numerical. Line type of the grid lines (same types as par("lty")).
单一的数值。线类型的网格线(同一类型与参数(“LTY”))。
参数:class.sys
Single text string. Text code of the texture classification system to be plotted on the background of the texture triangle. That texture classification system will determines the triangle geometry and particle class size system of the plot, unless higher level options are chosen (see the function definition). Possible values are "none" (no classification plotted), "USDA.TT" (USDA texture triangle), "FAO50.TT" (FAO texture triangle with a 50 microns silt-sand limit. DEFAULT VALUE), "FR.AISNE.TT" (French texture triangle of the Aisne region soil survey), "FR.GEPPA.TT" (French GEPPA texture triangle), "DE.BK94.TT" (German texture triangle), "UK.SSEW.TT" (Soil Survey of England and Wales), "AU.TT" (Australian texture triangle), "BE.TT" (Belgium texture triangle), "CA.EN.TT" (Canadian texture triangle, with English class abbreviations) and "CA.FR.TT" (Canadian texture triangle, with French class abbreviations).
一个文本字符串。要绘制的纹理分类系统的文本代码的背景上的纹理三角形。 ,质地分类系统将决定三角形的几何形状和颗粒级规模的系统的图,除非选择更高级别的选项(参见函数的定义)。可能的值是“无”(无分类标出),“USDA.TT”(USDA质感的三角形),的“FAO50.TT”(粮农组织50微米淤砂的限制,默认值为质感的三角形),“ FR.AISNE.TT“(法国埃纳省区域土壤调查的纹理三角形的),”FR.GEPPA.TT“(法国GEPPA质感的三角形),的”DE.BK94.TT“(德国质感的三角形),”英国SSEW.TT“(英格兰和威尔士)的土壤调查,的”AU.TT“(澳大利亚质感的三角形),”BE.TT“(比利时质感的三角形),”CA.EN.TT“(加拿大质地三角,英语课缩写)和“CA.FR.TT”(加拿大的纹理三角形,与法语课的缩写)。
参数:class.lab.show
Single text string. If equal to "abr" (default) or "full", labels are drawn inside texture class polygons with their full name ("full") or abbreviated name ("abr"). If equal to "none", no label is drawn.
一个文本字符串。如果等于“}”(默认)或“全”,标签内绘制质感一流的多边形与他们的全名(“全部”),或简称(“}”)。如果等于“无”,无标签的绘制。
参数:class.lab.col
Text string containing an R color code. Color of the text label drawn inside texture class polygons.
文本字符串,其中包含的R颜色代码。质感一流的多边形绘制的文本标签内的颜色。
参数:class.line.col
Text string containing an R color code. Color of the texture class polygon boundary lines.
文本字符串,其中包含的R颜色代码。结构类多边形的边界线的颜色。
参数:class.p.bg.col
Single logical OR vector of R colors (character strings). If FALSE (the default), no color gradient is used inside the texture class polygons. If TRUE, a color gradient is drawn, with the color hue specified in 'class.p.bg.hue' and with saturation and values that vary with texture. If 'class.p.bg.col' is a vector of R colors of the same length as the number of classes in the triangle, these colors will be used as background color for each texture classe plygons.
单一的逻辑或的R颜色(字符串)的向量。如果为FALSE(默认值),没有颜色渐变结构类多边形内部使用。如果为true,画,颜色渐变的色调和饱和度和不同质地的值指定在“class.p.bg.hue”。如果class.p.bg.col是一个向量的三角形中的类的数量的长度相同的R颜色,这些颜色将被用于为每个纹理CLASSE plygons作为背景色。
参数:class.p.bg.hue
Single numerical. Only used if class.p.bg.col == TRUE (no default). Color hue (between 0 and 1) used to create a color gradient between the different texture class polygons.
单一的数值。如果class.p.bg.col仅用于== TRUE(默认)。的色调(在0和1之间),用于创建之间的不同的结构类多边形的颜色渐变。
参数:arrows.show
Single logical. If TRUE (default), 3 arrows are drawn outside the triangle, along each axis, that show the direction of increasing values (arrow base) and of isovalue (arrow tip) of the texture class. If FALSE no arrows are drawn.
单一的逻辑。如果为TRUE(默认值),3的箭头绘制三角形之外,沿每个轴,表明增加值(箭头基)和纹理类isovalue(箭头前端部)的方向。如果为FALSE不拔箭。
参数:arrows.lty
Single numerical. Line type of the arrows drawn outside the triangle, along each axis. Same possible types as par("lty").
单一的数值。绘制的箭头线类型以外的三角形,沿每个轴。同可能的类型与参数(LTY“)。
参数:points.type
Single text letter. Point type. Either "p" (points only), "l" (lines only) or "b" (both points and lines), as for plot() or points(). Point refer here to soil texture values plotted on the triangle.
单文本信。点的类型。无论是“p”的(点),“l”的(线)或“b”(两个点和线),为图()或点()。点这里指的是土壤质地值绘制的三角形。
参数:pch
Single numerical or vector of numericals, or single text string or vector of text string. Point shape number(s) or point character(s) to be plotted. Point refer here to soil texture values plotted on the triangle.
单一的数值或的矢量的numericals,或一个文本字符串或向量的文本字符串。点形状是(S)或点字符(s)被绘制。点这里指的是土壤质地值绘制的三角形。
参数:z.type
Single character string. Type of plot to be used for displaying a 4th variable on the texture triangle (in addition to Clay, Silt and Sand). Only used if 'z.name' is not NULL. Currently only one value is supported, "bubble", for displaying a bubble plot with bubble sizes and color saturation and values proportional to the value of tri.data[,z.name]. The value 'map' is deprecated and replaced by TT.iwd(), TT.image() or TT.contour().
单字符的字符串。图类型,用于显示第四个变量的的纹理三角形(除了粘土,粉土和沙)。如果只使用“z.name”不为NULL。目前只有一个值被支承,“泡沫”,用于显示与气泡的大小和颜色饱和度值成比例的值tri.data [气泡图,z.name]。 “图”的价值已被废弃,取而代之的TT.iwd TT.image(),()或TT.contour()的。
参数:z.col.hue
Single numerical. Hue of the bubble color ([0-1]) to be used if 'z.name' is not NULL. A gradient of saturation and value is automatically created for the bubbles (with this hue).
单一的数值。色相的气泡颜色([0-1])将用作,如果z.name是不为NULL。渐变的饱和度和值会自动创建的气泡这个色调。
参数:z.cex.range
Vector of 2 numericals. Minimum and maximum 'cex' of the bubbles plotted on the triangle if 'z.name' is not NULL.
向量的2 numericals。最小和最大的CEX的气泡上绘制的三角形,如果,z.name“不为NULL。
参数:z.pch
Single numerical or vector of numericals. Point symbol number(s) to be used for the bubbles if 'z.name' is not NULL.
单一的数值或向量的numericals。点符号数(S)以用于气泡如果z.name不为NULL。
参数:text.tol
Single numerical. Tolerance on the sum of the 3 particle size classes. The real sum of the 3 particle size classes in 'tri.data' should be >= text.sum * (1-text.tol) OR <= text.sum * (1+text.tol). See 'text.sum' for more details, as well as 'tri.sum.tst' (to prevent texture sum tests).
单一的数值。公差的总和3粒径类的。 3粒径类在tri.data真正的总和应该是> = text.sum *(1-text.tol)OR <= text.sum的*(1 + text.tol)。有关详细信息,请参阅“text.sum”,以及“tri.sum.tst”(防止纹理和检验)。
参数:tri.sum.tst
Single logical. If TRUE (the default), the sum of the 3 texture classes of each texture value in 'tri.data' will be checked in regard to 'text.sum' and 'text.tol'. If FALSE, no test is done.
单一的逻辑。如果为True(默认值),3个纹理类的每个纹理值在“tri.data”的总和将被中关于“text.sum”和“text.tol检查。如果为FALSE,没有进行测试。
参数:tri.pos.tst
Single logical. If TRUE (the default), the position of texture values in 'tri.data' are tested to check that they are not OUTSIDE the texture triangle (i.e. that some texture values may be negative).
单一的逻辑。如果是TRUE(默认值),位置的纹理值在“tri.data”的测试,以确定它们是不是外面的的纹理三角形(即一些纹理值可能为负)。
参数:b.lim
Vector of 2 numerical values. This is an equivalent to plot() xlim argument. Minimum and maximum x / bottom value of the texture triangle area, in FRACTION OF THE MAXIMAL EXTENSION. Default is c(0,1). The real span is then b.lim * text.sum. This is a minimal 'zoom' implementation (results are not always perfect). 'b.lim' and 'l.lim' should be equal for better rendering.
向量的2个数值。这是一个相当于图()作适当调整参数。最小和最大x /底值的的纹理三角区,在最大伸展的分数。默认为C(0,1)。真正的跨然后b.lim * text.sum的。这是一个很小的“放大”的执引号况(结果并不总是完美的)。为更好的渲染b.lim“和”l.lim的应该是平等的。
参数:l.lim
Vector of 2 numerical values. This is an equivalent to plot() ylim argument. Minimum and maximum y / left value of the texture triangle area, in FRACTION OF THE MAXIMAL EXTENSION. Default is c(0,1). The real span is then l.lim * text.sum. This is a minimal 'zoom' implementation (results are not always perfect). 'b.lim' and 'l.lim' should be equal for better rendering.
向量的2个数值。这是一个相当于图()ylim,参数。最小和最大y /左值的的纹理三角区,在最大伸展的分数。默认为C(0,1)。真正的跨然后l.lim * text.sum的。这是一个很小的“放大”的执引号况(结果并不总是完美的)。为更好的渲染b.lim“和”l.lim的应该是平等的。
参数:lang
Single text string. Determines the language used for the plot main title and axis labels. Possible values are 'en' (English, the default), "fr" (French), "it" (Italian), "es" (Spanish), "de" (German), "nl" (Dutch), "se" (Swedish) and "fl" (Flemish).
一个文本字符串。确定小区的主标题和轴标签所使用的语言。可能的值是“EN”(英文,默认值),“FR”(法语),“”(意大利),“ES”(西班牙语),“DE”(德国),“NL”(荷兰),“SE”(瑞典)和“FL”(佛兰芒语)。
参数:new.mar
Vector of 4 numericals. Margin sizes of the plot. Default is the same as par("mar"). See par("mar") for more details. Use this at your own risks!
向量的4 numericals。边距大小的图。默认值是相同面值(“日”)。有关详细信息,请参阅参数(“MAR”)。在自己的风险!
参数:new.centroid
Single logical. If TRUE (default) the new method (Paul Bourke) is used to calculate the centroid. If FALSE the centroid is taken as the mean x and y coordinates of the vertices.
单一的逻辑。如果是TRUE(默认值)的新方法(保罗·伯克)是用来计算质心。如果为FALSE的质心被取为x和y的平均值的顶点坐标。
(作者)----------Author(s)----------
Julien MOEYS <jules_m78-soiltexture@yahoo.fr>, contributions from Wei Shangguan.
实例----------Examples----------
# ::: Texture triangles without data[:::的纹理三角形没有数据]
# :: Base plot (FAO triangle) [::基图(FAO三角形)]
TT.plot()
# same as[相同]
TT.plot( class.sys = "FAO50.TT" )
# :: Same plot, but with USDA texture triangle [::同样的图,但美国农业部质地三角]
TT.plot( class.sys = "USDA.TT" )
# :: Same plot, but with a color gradient [::同样的图,但用颜色渐变]
TT.plot(
class.sys = "USDA.TT",
class.p.bg.col = TRUE
) #[]
# :: No texture classification system[::无纹理分类系统]
TT.plot( class.sys = "none" )
# ::: Texture triangles with texture data [:::纹理三角形的纹理数据]
# :: 1st create a dummy texture dataset [:: 1创建一个虚拟的纹理数据集]
my.text <- data.frame(
"CLAY" = c(05,60,15,05,25,05,25,45,65,75,13,47),
"SILT" = c(05,08,15,25,55,85,65,45,15,15,17,43),
"SAND" = c(90,32,70,70,20,10,10,10,20,10,70,10),
"OC" = c(20,14,15,05,12,15,07,21,25,30,05,28)
) #[]
# :: And plot it on a French Aisne texture triangle[::绘制在法国埃纳省质地三角]
# with a title[标题]
TT.plot(
class.sys = "FR.AISNE.TT",
tri.data = my.text,
main = "Soil texture data"
) #[]
# ::: Bubble plots (4th variable) [:::气泡图(第4个变量)]
# :: 1st generate a dummy texture dataset with a 4th variable [::第1与第4个变量的数据集生成一个虚拟的纹理]
# with TT.dataset() [TT.dataset()]
rand.text <- TT.dataset( n = 100, seed.val = 1980042401 )
# :: Plot the dummy dataset as a bubble plot[::绘制的虚拟数据集作为一个气泡图]
TT.plot(
class.sys = "none",
tri.data = rand.text,
z.name = "Z",
main = "Soil texture triangle and Z bubble plot"
) #[]
# ::: Test all the texture triangles[:::测试所有的纹理三角形]
TT.plot( class.sys = "none" ) # no classification [没有分类]
TT.plot( class.sys = "FAO50.TT" ) # FAO [粮农组织]
TT.plot( class.sys = "USDA.TT" ) # USDA [美国农业部]
TT.plot( class.sys = "FR.AISNE.TT" ) # French Aisne [法国埃纳省]
TT.plot( class.sys = "FR.GEPPA.TT" ) # French GEPPA [法国GEPPA]
TT.plot( class.sys = "DE.BK94.TT" ) # Germany [德国]
TT.plot( class.sys = "UK.SSEW.TT" ) # UK [联合王国]
TT.plot( class.sys = "BE.TT" ) # Belgium [比利时]
TT.plot( class.sys = "CA.FR.TT" ) # Canada (fr) [加拿大(法语)]
TT.plot( class.sys = "CA.EN.TT" ) # Canada (en) [加拿大(EN)]
TT.plot( class.sys = "AU.TT" ) # Australian [澳大利亚的]
TT.plot( class.sys = "ISSS.TT" ) # ISSS [ISSS]
TT.plot( class.sys = "ROM.TT" ) # Romanian [罗马尼亚]
TT.plot( class.sys = "PL.TT" ) # Polish [波兰语]
TT.plot( class.sys = "DE.SEA74.TT" ) # German SEA 1974 [德国SEA 1974年]
TT.plot( class.sys = "DE.TGL85.TT" ) # German TGL 1985 [1985年德国TGL]
# ::: Test all the languages:[:::测试所有的语言:]
TT.plot( class.sys = "USDA.TT", lang = "en" ) # English, default [英语,默认]
TT.plot( class.sys = "USDA.TT", lang = "fr" ) # French [法国人]
TT.plot( class.sys = "USDA.TT", lang = "de" ) # German [德国的]
TT.plot( class.sys = "USDA.TT", lang = "es" ) # Spanish [西班牙的]
TT.plot( class.sys = "USDA.TT", lang = "it" ) # Italian [意大利的]
TT.plot( class.sys = "USDA.TT", lang = "nl" ) # Dutch [荷兰人]
TT.plot( class.sys = "USDA.TT", lang = "fl" ) # Dutch (Belgian) / Flemmish [荷兰(比利时)/ Flemmish]
TT.plot( class.sys = "USDA.TT", lang = "se" ) # Swedish [瑞典]
TT.plot( class.sys = "USDA.TT", lang = "ro" ) # Romanian [罗马尼亚]
TT.plot( class.sys = "USDA.TT", lang = "pl" ) # Polish [波兰语]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|