Plot2d(RSurvey)
Plot2d()所属R语言包:RSurvey
Plot Points or Interpolated Surface
积点或插值曲面
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Draws a scatter plot or contour plot with arrows. A key showing how the colors map to state variable values is shown to the right of the plot.
绘制散点图或等高线图箭头。显示的颜色是如何映射到状态变量的值的一个关键的图证明是正确的。
用法----------Usage----------
Plot2d(x = NULL, y = NULL, z = NULL, vx = NULL, vy = NULL,
type = "p", xlim = NULL, ylim = NULL, zlim = NULL,
xlab = NULL, ylab = NULL, zlab = NULL, asp = NA,
csi = NA, width = 7, pointsize = 12, cex.pts = 1,
nlevels = 20, rkey = FALSE,
color.palette = terrain.colors,
vuni = FALSE, vmax = NULL, vxby = NULL, vyby = NULL,
axis.side = 1:2, minor.ticks = FALSE,
ticks.inside = FALSE, add.contour.lines = FALSE,
rm.pnt.line = FALSE)
参数----------Arguments----------
参数:x
numeric; a vector of x coordinates for the plot. If x is a data frame, its components x$x, x$y, x$z, x$vx, and x$vy are used for x, y, z, vx, and vy, respectively.
数字,矢量x坐标的图。如果x是一个数据框,其成分x$x,x$y,x$z,x$vx和x$vy是x ,y,z,vx,vy“。
参数:y
numeric; a vector of y coordinates for the plot.
数字,矢量y坐标的图。
参数:z
numeric or matrix; the state variable values to be plotted, NAs allowed. A matrix is required for contour plots.
数字或矩阵的状态变量值被绘制,NAS允许的。 A矩阵所需的等高线图。
参数:vx, vy
numeric; a vector of arrow component lengths in the x and y directions.
数字;x和y方向的箭头组成部分长度的向量。
参数:type
character; a 1-character string giving the type of plot desired. The following values are possible: "p" for points, "l" for level contour, "g" for grid contour.
字符,1个字符的字符串,提供所需的类型图。下面的值是可能的:点“P”,“L”,“G”为网格轮廓水位线。
参数:xlim
numeric; a vector of x limits (x1,x2) for the plot.
数字的向量x限制(x1,x2)的图。
参数:ylim
numeric; a vector of y limits (y1,y2) for the plot.
数字的向量y限制(y1,y2)的图。
参数:zlim
numeric; a vector of z limits (z1,z2) for the plot.
数字的向量z限制(z1,z2)的图。
参数:xlab, ylab
character; the label for the x and y axis.
字符x和y轴的标签。
参数:zlab
character; the label for the z legend.
字符的标签z传说。
参数:asp
numeric; the y/x aspect ratio.
数字;y/x的纵横比。
参数:csi
numeric; height of text characters in inches.
数字的文本字符高度,以英寸为单位。
参数:width
numeric; the width of the plotting window canvas in inches.
数字;绘图窗口画布以英寸为单位的宽度。
参数:pointsize
integer; the point size of plotted text.
整数点的大小绘制文本。
参数:cex.pts
numeric; the amount by which point symbols should be magnified relative to the default.
数字;这点符号应该被放大的量相对于默认。
参数:nlevels
integer; number of contour levels desired.
整数的轮廓水平所需的数量。
参数:rkey
logical; if TRUE the legend key is reversed with z values descending from top to bottom; its default is FALSE.
逻辑,如果TRUE传说z值下降从上到下关键是相反的,它的默认值是FALSE。
参数:color.palette
function; a color palette to be used to assign colors in the plot.
功能的调色板可用于指定颜色的图。
参数:vuni
logical; if TRUE all arrow lengths are set equal; its default is FALSE.
逻辑,如果TRUE所有的箭头长度等于它的默认值是FALSE。
参数:vmax
numeric; the maximum length of arrows in inches.
数字;箭头以英寸为单位的最大长度。
参数:vxby, vyby
integer; increment for the sequence of arrows in the x and y direction.
整数;x和y方向中的箭头的顺序递增。
参数:axis.side
integer; the side of the plot the axis is to be drawn on. The axis is placed as follows: 1 = below, 2 = left, 3 = above and 4 = right.
整数;轴侧的图,要被绘制的。该轴被放置如下:1 =以下,2 =左,3 =上述和4 =右。
参数:minor.ticks
logical; if TRUE minor tickmarks are added to the plot; its default is FALSE.
逻辑,如果TRUE次要刻度线的图,它的默认值是FALSE。
参数:ticks.inside
logical; if TRUE tickmarks are placed inside the plot region; its default is FALSE.
逻辑;如果TRUE刻度线都放在里面的图区域,其默认值为FALSE。
参数:add.contour.lines
logical; if TRUE and type is either "l" or "g" than contour lines are drawn; its default is FALSE.
逻辑,如果TRUE和type要么是“L”或“g”等高线绘制;其默认值是:FALSE。
参数:rm.pnt.line
logical; if TRUE the line boundary on point symbols is not drawn; its default is FALSE.
逻辑,如果TRUE线边界上的点状符号的绘制,它的默认值是FALSE。
Details
详细信息----------Details----------
The length of x and y should be equal to the nrow(z) and ncol(z), respectively.
的长度x和ynrow(z)和ncol(z),分别应该是平等的。
(作者)----------Author(s)----------
J.C. Fisher
参见----------See Also----------
filled.contour, image, arrows, AddAxis
filled.contour,image,arrows,AddAxis
实例----------Examples----------
data(project)
d <- project$data.pts
Plot2d(d, type = "p")
d <- project$data.grd
Plot2d(d, type = "l")
Plot2d(d, type = "g")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|