filled.contour.poly(spatialkernel)
filled.contour.poly()所属R语言包:spatialkernel
Level (Contour) Plots with Polygonal Boundary
与多边形边界的水平(等高线)图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This is a revised version of the base R function filled.contour. It additionally plots a polygonal boundary.
这是修改后的版本的baseR函数filled.contour。另外,它还绘制一个多边形的边界。
用法----------Usage----------
filled.contour.poly(x = seq(min(poly[,1]), max(poly[,1]),
len = nrow(z)),
y = seq(min(poly[,2]), max(poly[,2]), len = ncol(z)),
z, poly,
xlim = range(x, finite=TRUE),
ylim = range(y, finite=TRUE),
zlim = range(z, finite=TRUE),
levels = pretty(zlim, nlevels), nlevels = 10,
color.palette = risk.colors,
col = color.palette(length(levels) - 1),
llevels = levels, labels = NULL, labcex = 0.6,
drawlabel = TRUE, method = "flattest",
vfont = c("sans serif", "plain"),
lcol = par("fg"), lty = par("lty"), lwd = par("lwd"),
plot.title, plot.axes, key.title, key.axes,
asp = NA, xaxs = "i", yaxs = "i", las = 1, axes = TRUE,
...)
参数----------Arguments----------
参数:x,y
locations of grid lines at which the values in z are measured. These must be in ascending order. By default, equally spaced values from 0 to 1 are used. If x is a list, its components x$x and x$y are used for x and y, respectively. If the list has component z this is used for z.
在该网格线的位置中的值z计量。这些都必须以升序排列。缺省情况下,使用同样间隔开的从0到1的值。如果x是一个列表,其组成部分x$x和x$y是用于x和y,。如果的列表有分量z,这是用于z。
参数:z
a matrix containing the values to be plotted (NAs are allowed). Note that x can be used instead of z for convenience.
要绘制一个矩阵包含的值(NA的允许)。注意x可以代替z为方便起见。
参数:xlim
x limits for the plot.
x限制的图。
参数:ylim
y limits for the plot.
y限制的图。
参数:zlim
z limits for the plot.
z限制的图。
参数:poly
a matrix containing the x,y-coordinates of the vertices of the polygon boundary.
的矩阵含有x,y的-坐标的顶点的多边形的边界。
参数:levels
a set of levels which are used to partition the range of z. Must be strictly increasing (and finite). Areas with z values between consecutive levels are painted with the same color.
一组用于分区的范围内z的水平。必须严格增加(有限)。区域z值在连续的水平被漆成相同的颜色。
参数:nlevels
if levels is not specified, the range of z is divided into approximately this many levels.
如果levels未指定范围内的z划分为约多层次的。
参数:color.palette
a color palette function used to assign colors in the plot.
一个调色板功能用于指定颜色中的图。
参数:col
an explicit set of colors to be used in the plot. This argument overrides any palette function specification.
一组明确的在图中使用的颜色。该参数将取代调色板功能规范。
参数:llevels
numeric vector of levels at which to draw contour lines, default is the same as levels.
数字向量在要绘制等高线的水平,默认情况下是一样levels。
参数:labels
a vector giving the labels for the contour lines. If NULL then the levels are used as labels.
的向量给予的轮廓线的标签。如果NULL然后水平作为标签。
参数:labcex
cex for contour labelling.
cex轮廓标注。
参数:drawlabel
logical, contour lines are labelled if TRUE.
逻辑,等高线标记如果TRUE。
参数:method
character string specifying where the labels will be located. Possible values are "simple", "edge" and "flattest" (the default). See the Details section.
字符串将位于指定的标签。可能的值是“简单”,“边缘”和“平坦的”(默认值)。查看详细信息“一节。
参数:vfont
if a character vector of length 2 is specified, then Hershey vector fonts are used for the contour labels. The first element of the vector selects a typeface and the second element selects a fontindex (see text for more information).
如果一个字符指定矢量长度为2,然后贺喜的用于矢量字体的轮廓标签。第一个元素的向量选择一个字体,第二个元素选择一个fontindex时(text的详细信息)。
参数:lcol
color for the lines drawn.
绘制的线条的颜色。
参数:lty
line type for the lines drawn.
线路类型所绘制的线条。
参数:lwd
line width for the lines drawn.
绘制的线条的线宽。
参数:plot.title
statement which add title to the main plot.
语句添加标题的主要图。
参数:plot.axes
statement which draws axes on the main plot. This overrides the default axes.
声明,绘制轴线上的主要图。这将覆盖默认的轴。
参数:key.title
statement which adds title to the plot key.
声明中添加标题的图关键。
参数:key.axes
statement which draws axes on the plot key. This overrides the default axis.
声明绘制轴的图键。这将覆盖默认的轴。
参数:asp
the y/x aspect ratio, see plot.window.
y/x高宽比,看到plot.window。
参数:xaxs
the x axis style. The default is to use internal labeling.
x轴样式。默认情况下是使用内部标签。
参数:yaxs
the y axis style. The default is to use internal labeling.
y轴样式。默认情况下是使用内部标签。
参数:las
the style of labeling to be used. The default is to use horizontal labeling.
标记要使用的样式。默认情况下是使用卧式贴标。
参数:axes, ...
additional graphical parameters.
额外的图形参数。
注意----------Note----------
By defining z values as NA at points outside the polygonal boundary, filled.contour.poly produces a contour plot within the polygonal boundary.
通过定义z值NA在多边形边界点外,filled.contour.poly产生的等高线图的多边形边界内。
参见----------See Also----------
filled.contour, contour and pinpoly
filled.contour,contour和pinpoly
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|