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

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

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

                                         Build Detector Array
                                         建立探测器阵列

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

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

Construct a rectangular array of detectors (trapping grid) or a circle of detectors or a polygonal search area.
构建探测器(捕集网格)或探测器的圆或多边形的搜索区域的矩形阵列。


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


make.grid(nx = 6, ny = 6, spacex = 20, spacey = 20, spacing = NULL,
    detector = "multi", originxy = c(0,0), hollow = F,
    ID = "alphay")

make.circle (n = 20, radius = 100, spacing = NULL,
    detector = "multi", originxy = c(0,0), IDclockwise = T)

make.poly (polylist = NULL, x = c(-50,-50,50,50),
    y = c(-50,50,50,-50), exclusive = FALSE, verify = TRUE)

make.transect (transectlist = NULL, x = c(-50,-50,50,50),
    y = c(-50,50,50,-50), exclusive = FALSE)




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

参数:nx
number of columns of detectors  
检测器的列的数量


参数:ny
number of rows of detectors  
的探测器的行数


参数:spacex
distance between detectors in "x" direction (nominally in metres)
x方向的探测器之间的距离(名义上米)


参数:spacey
distance between detectors in "y" direction (nominally in metres)
在y的方向探测器之间的距离(名义上米)


参数:spacing
distance between detectors (x and y directions)
探测器之间的距离(x和y方向)


参数:detector
character value for detector type - "single", "multi" etc.  
字符值检测器类型 - “单一”,“多”等。


参数:originxy
vector origin for x-y coordinates  
矢量x-y坐标的原点


参数:hollow
logical for hollow grid  
逻辑中空格子


参数:ID
character string to control row names  
控制行名称的字符串


参数:n
number of detectors  
检测器的数量


参数:radius
radius of circle  (nominally in metres)  
圆的半径(名义上米)


参数:IDclockwise
logical for numbering of detectors  
逻辑号探测器


参数:polylist
list of dataframes with coordinates for polygons  
多边形的坐标的dataframes与名单


参数:transectlist
list of dataframes with coordinates for transects  
坐标断面的dataframes与名单


参数:x
x coordinates of vertices  
的顶点的x坐标


参数:y
y coordinates of vertices  
顶点的y坐标


参数:exclusive
logical; if TRUE animal can be detected only once per occasion  
逻辑,如果可以检测到真正的动物只有一次,每一次


参数:verify
logical if TRUE then the resulting traps object is checked with verify
逻辑真,那么产生的陷阱对象检查verify


Details

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

make.grid generates coordinates for nx.ny traps at separations spacex and spacey. If spacing is specified it replaces both spacex and spacey. The bottom-left (southwest) corner is at originxy. For a hollow grid, only detectors on the perimeter are retained. By default, identifiers are constructed from a letter code for grid rows and an integer value for grid columns ("A1", "A2",...). "Hollow" grids are always numbered clockwise in sequence from the bottom-left corner. Other values of ID have the following effects:
make.grid在分离nx.ny和spacex生成坐标spacey陷阱。如果spacing指定它取代两个spacex和spacey。在originxy的左下(西南)角。对于中空格子,只有在外线的探测器将被保留。默认情况下,标识符是一个字母的代码构建的网格行和格列(“A1”,“A2”,...)的整数值。 “空心”网格编号的顺序顺时针方向从左下角。值ID有以下影响:

"xy" adds leading zeros as needed to give a string of constant length with no blanks.
XY添加前导零的需要给一个固定长度的字符串没有空格。

make.circle generates coordinates for n traps in a circle centred on originxy. If spacing is specified then it overrides the radius setting; the radius is adjusted to provide the requested straightline distance between adjacent detectors. Traps are numbered from the trap due east of the origin, either clockwise or anticlockwise as set by IDclockwise.
make.circle生成集中在originxyn个陷阱,在一个圆圈的坐标。如果spacing指定,那么它覆盖radius;半径的调整,以提供所要求的直线距离相邻的探测器。陷阱编号从陷阱正东的起源,无论是顺时针或逆时针所订的IDclockwise。

Specialised functions for arrays using a triangular grid are described separately (make.tri,  clip.hex).
专门使用一个三角形网格阵列的功能分别进行介绍(make.tri,clip.hex)。

Polygon vertices may be specified with x and y in the case of a single polygon, or as polylist for one or more polygons. Each component of polylist is a dataframe with columns "x" and "y". polylist takes precedence. make.poly automatically closes the polygon by repeating the first vertex if the first and last vertices differ.
x和y在一个多边形的情况下,或polylist一个或多个多边形,多边形的顶点可以指定。 polylist每个组件是一个数据框的列x和y的。 polylist优先。 make.poly自动封闭的多边形,通过重复的第一个顶点,如果第一个和最后一个顶点不同。

Transects are defined by a sequence of vertices as for polygons, except  that they are not closed.
断面定义为多边形的顶点的顺序的,除非它们被不封闭。


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

An object of class traps comprising a data frame of x- and y-coordinates, the detector type ("single", "multi", or "proximity" etc.), and possibly other attributes.
类的一个对象traps包括一个数据框的x-和y-坐标,检测器的类型(“单”,“多”或“接近”等),以及可能的其他属性。


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

Several methods are provided for manipulating detector arrays - see traps.
有几种方法操纵探测器阵列 -  traps。


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

capture–recapture. Department of Zoology, University of Otago, Dunedin, New Zealand. http://www.otago.ac.nz/density
by spatially explicit capture-recapture: likelihood-based methods. In: D. L. Thomson, E. G. Cooch and M. J. Conroy (eds) Modeling Demographic Processes in Marked Populations. Springer, New York. Pp. 255–269.

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

read.traps,detector, print.traps, plot.traps,
read.traps,detector,print.traps,plot.traps,


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


demo.traps <- make.grid()
plot(demo.traps)

## compare numbering schemes[#比较的编号方案。]
par (mfrow = c(2,4), mar = c(1,1,1,1), xpd = TRUE)
for (id in c("numx", "numy", "alphax", "alphay", "numxb",
    "numyb"))
{
    temptrap <- make.grid(nx = 7, ny = 5, ID = id)
    plot (temptrap, border = 10, label = TRUE, offset = 7,
        gridl = FALSE)
}

temptrap <- make.grid(nx = 7, ny = 5, hollow = TRUE)
plot (temptrap, border = 10, label = TRUE, gridl = FALSE)

plot(make.circle(n = 20, spacing = 30), label = TRUE, offset = 9)
summary(make.circle(n = 20, spacing = 30))


## jitter locations randomly within grid square[随机抖动的位置在方格内]
## and plot over `mask'[#和图从面具]
temptrap <- make.grid(nx = 7, ny = 7, spacing = 30)
tempmask <- make.mask(temptrap, buffer = 15, nx = 7, ny = 7)
temptrap[,] <- temptrap[,] + 30 * (runif(7*7*2) - 0.5)
plot(tempmask, dots = FALSE)
plot(temptrap, add = TRUE)


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-30 10:50 , Processed in 0.020264 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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