找回密码
 注册
查看: 439|回复: 0

R语言 secr包 contour()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-29 23:55:52 | 显示全部楼层 |阅读模式
contour(secr)
contour()所属R语言包:secr

                                         Contour Detection Probability
                                         轮廓检测概率

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Display contours of the net probability of detection p.(X), or the area within a specified distance of detectors.  buffer.contour adds a conventional "boundary strip" to a detector (trap) array, where buffer equals the strip width.
显示轮廓的净检测概率p(X),或该区域的指定距离内的探测器。 buffer.contour增加了传统的“边界带”(陷阱)到一个探测器阵列,其中buffer等于带钢宽度。


用法----------Usage----------



pdot.contour(traps, border = NULL, nx = 64, detectfn = 0,
    detectpar = list(g0 = 0.2, sigma = 25, z = 1), noccasions = 5,
    binomN = NULL, levels = seq(0.1, 0.9, 0.1), poly = NULL, plt = TRUE,
    add = FALSE, ...)

buffer.contour(traps, buffer, nx = 64, convex = FALSE, ntheta = 100,
     plt = TRUE, add = FALSE, poly = NULL, ...)




参数----------Arguments----------

参数:traps
traps object  
traps对象


参数:border
width of blank margin around the outermost detectors  
各地的最外层探测器宽度的空白保证金


参数:nx
dimension of interpolation grid in x-direction  
在x-方向的插值网格尺寸


参数:detectfn
integer code or character string for shape of detection function 0 = halfnormal etc. – see detectfn  
的整数代码或字符串检测功能0 = halfnormal等形状 -  detectfn


参数:detectpar
list of values for named parameters of detection function  
检测功能命名参数的值列表


参数:noccasions
number of sampling occasions
样本的数量


参数:binomN
integer c ode for discrete distribution (see secr.fit)  
对于离散分布的(见secr.fit)的整数c颂歌


参数:levels
vector of levels for p.(X)
的p的水平矢量(X)的


参数:poly
matrix of two columns, the x and y coordinates of a bounding polygon (optional)  
两列的矩阵,x和y坐标的边界多边形(可选)


参数:plt
logical to plot contours  
逻辑图轮廓


参数:add
logical to add contour(s) to an existing plot  
逻辑轮廓(S)到现有的图


参数:...
other arguments to pass to contour  
到传递contour的其他参数


参数:buffer
vector of buffer widths  
矢量缓冲区的宽度


参数:convex
logical, if TRUE the plotted contour(s) will be convex  
逻辑,如果为true,绘制等高线(s)将凸


参数:ntheta
integer value for smoothness of convex contours  
凸轮廓平滑的整数值


Details

详细信息----------Details----------

pdot.contour constructs a rectangular mask and applies pdot to compute the p.(X) at each mask point.
pdot.contour构建了一个矩形遮罩,适用于pdot计算p(X)在每个面具点。

if convex = FALSE, buffer.contour constructs a mask and contours the points on the basis of distance to the nearest trap at the levels given in buffer.
如果convex = FALSE,buffer.contour构建了一个面具和轮廓上的点的基础上距离最近的陷阱在buffer水平。

if convex = TRUE, buffer.contour constructs a set of potential vertices by adding points on a circle of radius = buffer to each detector location; the desired contour is the convex hull of these points (this algorithm derives from Efford, 2009).
如果convex = TRUE,buffer.contour构建了一套潜在的顶点为半径的圆上加点=buffer每个探测器的位置;所需的轮廓是这些点的凸包(该算法派生自Efford,2009)。

Increase nx for smoother lines, at the expense of speed.
增加nx线条更加流畅,牺牲了速度。


值----------Value----------

Coordinates of the plotted contours are returned as a list with one component per polygon. The list is returned invisibly if plt =   TRUE.  
所绘制的轮廓坐标返回为与多边形的一个组成部分,每一个列表。如果plt =   TRUE返回列表看不见的。


注意----------Note----------

The precision (smoothness) of the fitted line in buffer.contour is controlled by ntheta rather than nx when convex     = TRUE.
的精度(光滑度)的拟合直线buffer.contour控制ntheta而不是nxconvex     = TRUE。“,

To suppress contour labels, include the argument drawlabels =   FALSE (this will be passed via ... to contour). Other useful arguments of contour are col (colour of contour lines) and lwd (line width).
为了抑制轮廓标签,包括的参数drawlabels =   FALSE(这将通过通过...以contour)的。其他有用的参数contourcol(轮廓线的颜色)和lwd(线宽)。


参考文献----------References----------

explicit capture–recapture. Department of Zoology, University of Otago, Dunedin, New Zealand http://www.otago.ac.nz/density.

参见----------See Also----------

pdot, make.mask
pdot,make.mask


实例----------Examples----------



possumtraps <- traps(possumCH)

plot(possumtraps, border = 270)
pdot.contour(possumtraps, detectfn = 0, nx = 128, detectpar =
    detectpar(possum.model.0), levels = c(0.1, 0.01, 0.001),
    add = TRUE)

## clipping to polygon[#裁剪的多边形]
olddir <- setwd(system.file("extdata", package = "secr"))
possumarea <- read.table("possumarea.txt", header = TRUE)
oldpar <- par(xpd = TRUE, mar = c(1,6,6,6))
plot(possumtraps, border = 400, gridlines = FALSE)
pdot.contour(possumtraps, detectfn = 0, nx = 256, detectpar =
    detectpar(possum.model.0), levels = c(0.1, 0.01, 0.001),
    add = TRUE, poly = possumarea, col = "blue")
lines(possumarea)
setwd(olddir)
par(oldpar)

## convex and concave buffers[#凸面和凹面的缓冲区]
plot(possumtraps, border = 270)
buffer.contour(possumtraps, buffer = 100, add = TRUE, col = "blue")
buffer.contour(possumtraps, buffer = 100, convex = TRUE, add = TRUE)

## areas[#区]
buff.concave <- buffer.contour(possumtraps, buffer = 100,
    plt = FALSE)
buff.convex  <- buffer.contour(possumtraps, buffer = 100,
    plt = FALSE, convex = TRUE)
sum (sapply(buff.concave, polyarea)) ## sum over parts[#总结部分区域]
sapply(buff.convex, polyarea)

## effect of nx on area[#效果的NX区]
buff.concave2 <- buffer.contour(possumtraps, buffer = 100,
    nx = 128, plt = FALSE)
sum (sapply(buff.concave2, polyarea))


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-30 13:40 , Processed in 0.033363 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表