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

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

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

                                         Construct Systematic Detector Design
                                         建设系统检测器的设计

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

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

A rectangular grid of clusters within a polygonal region.
多边形区域的矩形网格,聚类内。


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



make.systematic(n, cluster, region, spacing = NULL, origin = NULL, ...)




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

参数:n
integer approximate number of clusters (see Details)  
整数大致分类数(见详情)


参数:cluster
traps object defining a single cluster  
陷阱对象定义了一个单独的聚类


参数:region
dataframe or SpatialPolygonsDataFrame with coordinates of perimeter  
用的数据框或SpatialPolygonsDataFrame的坐标,周长


参数:spacing
scalar distance between cluster centres  
标量聚类中心之间的距离


参数:origin
vector giving x- and y-cooordinates of fixed grid origin (origin is otherwise random)
向量为x和y cooordinates定格原产地(原产地,否则随机)


参数:...
arguments passed to trap.builder  
参数传递给trap.builder


Details

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

region may be any shape. The sp class SpatialPolygonsDataFrame is useful for complex shapes and input from shapefiles using maptools (see Examples). Otherwise, region should be a dataframe with columns "x" and "y".
region可以是任何形状。 sp的类SpatialPolygonsDataFrame是复杂的形状,从shapefile投入使用maptools(见例)。否则,region应该是一个数据框的列x和y的。

spacing may be a vector with separate values for spacing in x- and y- directions. If spacing is provided then n is ignored.
spacing可以是一个矢量在x-和y-方向的间距与单独的值。如果spacing提供然后n被忽略。

If n is a scalar, the spacing of clusters is determined from the area of the bounding box of region divided by the requested number of clusters (this does not necessarily result in exactly n clusters). If n is a vector of two integers these are taken to be the number of columns and the number of rows.
如果n是一个标量,聚类的间距确定的边界框的面积region除以所要求数量的簇(这并不一定导致完全团簇)。如果n是一个向量的两个整数采取的列数和行数。

After preparing a frame of cluster centres, make.systematic calls trap.builder with method = "all"; ... allows the arguments "rotation", "edgemethod", "plt", and "detector" to be passed. Setting the trap.builder arguments frame, method, and samplefactor has no effect.
在准备一帧的聚类中心,make.systematic调用trap.builder=所有; ...允许参数旋转,edgemethod,plt的,和探测器以被传递。设置trap.builder参数frame,method和samplefactor有没有影响。


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

A single-session "traps" object.
单届“陷阱”的对象。


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

Do not confuse with the simpler function make.grid, which places single detectors in a rectangular array.
不要混淆简单的函数make.grid,单在矩形阵列探测器。


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

trap.builder, cluster.centres, readShapePoly
trap.builder,cluster.centres,readShapePoly


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



mini <- make.grid(nx = 2, ny = 2, spacing = 100)
region <- cbind(x=c(0,2000,2000,0), y=c(0,0,2000,2000))
temp <- make.systematic(25, mini, region, plt = TRUE)
temp <- make.systematic(c(6, 6), mini, region, plt = TRUE,
    rotation = -1)

## Example using shapefile "possumarea.shp" in[#示例使用的shapefile的“possumarea.shp”]
## "extdata" folder. By default, each cluster is [#“扩展数据”文件夹。默认情况下,每个簇]
## a single multi-catch detector[#一个单一的多副渔获物检测器]

## Not run: [#不运行:]
require(maptools)
setwd(system.file("extdata", package = "secr"))
possumarea <- readShapePoly("possumarea")  
possumgrid <- make.systematic(spacing = 100, region =
    possumarea, plt = TRUE)

## or with 2 x 2 clusters[#或2×2群]
possumgrid2 <- make.systematic(spacing = 300,
    cluster = make.grid(nx = 2, ny = 2, spacing = 100),
    region = possumarea, plt = TRUE, edgemethod =
    "allinside")
## label clusters[#标签聚类]
text(cluster.centres(possumgrid2), levels(clusterID
    (possumgrid2)), cex=0.7)

## If you have GPSBabel installed and on the Path[#如果你GPSBabel的安装路径]
## then coordinates can be projected and uploaded[然后坐标,可以预计,并上传]
## to a GPS with `writeGPS', which also requires the[#与的writeGPS,这也需要一个GPS]
## package `proj4'. Defaults are for a Garmin GPS[#封装的proj4的“。默认值是Garmin的GPS]
## connected by USB.[#通过USB连接。]

writeGPS(possumgrid, proj = "+proj=nzmg")


## End(Not run)[#(不执行)]


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-30 10:39 , Processed in 0.020968 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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