xyz.coords(grDevices)
xyz.coords()所属R语言包:grDevices
Extracting Plotting Structures
绘制结构提取
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Utility for obtaining consistent x, y and z coordinates and labels for three dimensional (3D) plots.
实用的三维(3D)图取得一致的X,Y和Z坐标和标签。
用法----------Usage----------
xyz.coords(x, y = NULL, z = NULL,
xlab = NULL, ylab = NULL, zlab = NULL,
log = NULL, recycle = FALSE)
参数----------Arguments----------
参数:x, y, z
the x, y and z coordinates of a set of points. Both y and z can be left at NULL. In this case, an attempt is made to interpret x in a way suitable for plotting. If the argument is a formula zvar ~ xvar + yvar, xvar, yvar and zvar are used as x, y and z variables; if the argument is a list containing components x, y and z, these are assumed to define plotting coordinates; if the argument is a matrix or data.frame with three or more columns, the first is assumed to contain the x values, the 2nd the y ones, and the 3rd the z ones – independently of any column names that x may have. Alternatively two arguments x and y can be provided (leaving z = NULL). One may be real, the other complex; in any other case, the arguments are coerced to vectors and the values plotted against their indices.
X,Y和Z坐标的一个点集。既y和z可以在NULL离开。在这种情况下,试图作出解释x适合绘图的方式。如果参数是一个公式zvar ~ xvar + yvar,xvar,yvar和zvarX,Y和Z变量;如果参数是一个列表,其中包含组件<X >,x和y,这些假设定义绘图坐标;如果参数是一个矩阵或z有三个或更多列,第一是假设包含x值第二Y型的,和第三的z的 - 独立data.frame可能有任何列名。另外两个参数x和x可以(离开y)。一个可能是真实的,其他复杂的,在任何其他情况下,被强制参数向量和对他们的指数绘制的值。
参数:xlab, ylab, zlab
names for the x, y and z variables to be extracted.
X,Y和Z要提取的变量名称。
参数:log
character, "x", "y", "z" or combinations. Sets negative values to NA and gives a warning.
字符,"x","y","z"或组合。设置NA负值,并给予警告。
参数:recycle
logical; if TRUE, recycle (rep) the shorter ones of x, y or z if their lengths differ.
逻辑;如果TRUE(,回收rep)x较短的y或z如果它们的长度不同。
值----------Value----------
A list with the components
组件列表
参数:x
numeric (i.e., double) vector of abscissa values.
数字(即double)横坐标值的向量。
参数:y
numeric vector of the same length as x.
数字为x相同长度的向量。
参数:z
numeric vector of the same length as x.
数字为x相同长度的向量。
参数:xlab
character(1) or NULL, the axis label of x.
character(1)或NULL,x轴标签。
参数:ylab
character(1) or NULL, the axis label of y.
character(1)或NULL,y轴标签。
参数:zlab
character(1) or NULL, the axis label of z.
character(1)或NULL,z轴标签。
作者(S)----------Author(s)----------
Uwe Ligges and Martin Maechler
参见----------See Also----------
xy.coords for 2D.
xy.coords为2D。
举例----------Examples----------
xyz.coords(data.frame(10*1:9, -4), y = NULL, z = NULL)
xyz.coords(1:5, stats::fft(1:5), z = NULL, xlab = "X", ylab = "Y")
y <- 2 * (x2 <- 10 + (x1 <- 1:10))
xyz.coords(y ~ x1 + x2, y = NULL, z = NULL)
xyz.coords(data.frame(x = -1:9, y = 2:12, z = 3:13), y = NULL, z = NULL,
log = "xy")
##> Warning message: 2 x values <= 0 omitted ...[#>警告消息:2 x值<= 0省略......]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|