drawEllipse(shotGroups)
drawEllipse()所属R语言包:shotGroups
Draw a single ellipse
绘制一个椭圆
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Adds a single ellipse to an already opened plot.
将一个椭圆添加到一个已经打开的图。
用法----------Usage----------
bg = NA, colCtr = NA, lty = par('lty'),
参数----------Arguments----------
参数:ctr
a numerical 2-vector giving the (x,y)-coordinates of the center.
的数值的2矢量得到的(x,y)的中心坐标。
参数:shape
a numerical symmetric (2 x 2)-matrix whose eigen-structure determines the ellipse's shape.
数值对称的(2×2)矩阵,其特征结构决定的椭圆的形状。
参数:radius
a numerical value giving the ellipse's magnification factor.
椭圆形的放大系数的数值。
参数:nv
number of vertices in the approximating polygon.
近似多边形的顶点的数目。
参数:fg
color of the ellipse's rim.
椭圆的边缘颜色。
参数:bg
the ellipse's fill color. Set to NA for a fully transparent ellipse.
椭圆形的填充颜色。设置为NA一个完全透明的椭圆形。
参数:colCtr
color of the center point. Set to NA to omit.
色的中心点。设置为NA省略。
参数:lty
line type of the ellipse.
椭圆线类型。
参数:lwd
line width of the ellipse.
的椭圆形的线宽度。
参数:pch
symbol used for the center of the ellipse.
所用符号为中心的椭圆形。
参数:cex
magnification factor for the symbol used for the center of the ellipse.
为中心的椭圆形中使用的符号的倍率。
Details
详细信息----------Details----------
This function is mainly a wrapper for polygon.
此功能是主要的包装polygon。
参见----------See Also----------
polygon
polygon
实例----------Examples----------
## error ellipse for a set of points[#为一组点的误差椭圆]
xy <- matrix(round(rnorm(100, 0, 8), 2), ncol=2)
ctr <- colMeans(xy)
covMat <- cov(xy)
plot(xy, pch=16, asp=1)
drawEllipse(ctr, covMat, radius=1, fg='blue', colCtr='blue',
lwd=2, pch=4, cex=2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|