getBoundingBox(shotGroups)
getBoundingBox()所属R语言包:shotGroups
Bounding box for a set of 2D-points
边界框的二维点的一组
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Calculates the vertices of the (axis-parallel) bounding box given a set of 2D-coordinates.
计算(轴平行)的给定一组二维坐标的边界框的顶点。
用法----------Usage----------
getBoundingBox(xy)
参数----------Arguments----------
参数:xy
a numerical (n x 2)-matrix with the (x,y)-coordinates of n points (1 row of coordinates per point).
数值(为nx 2)矩阵的n个点(1行的每点的坐标)的(x,y)的坐标。
值----------Value----------
A list containing the rectangle's vertices, width, and height.
一个列表,其中包含矩形的顶点,宽度和高度。
参数:pts
a numerical 4-vector giving the coordinates xleft, ybottom, xright, ytop that can be passed to rect.
一个数值向量的坐标xleft,ybottom,xright,ytop可以传递给rect。
参数:width
width of the box.
框的宽度。
参数:height
height of the box.
框的高度。
参见----------See Also----------
drawBox, getMinBBox, getMinCircle
drawBox,getMinBBox,getMinCircle
实例----------Examples----------
xy <- matrix(round(rnorm(20, 100, 15), 1), ncol=2)
bb <- getBoundingBox(xy)
plot(xy, pch=16)
drawBox(bb$pts[1], bb$pts[2], bb$pts[3], bb$pts[4],
fg='blue', colCtr='blue', pch=4, cex=2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|