infline(spatstat)
infline()所属R语言包:spatstat
Infinite Straight Lines
无限直线
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Define the coordinates of one or more straight lines in the plane
定义中的一个或多个直线在平面上的坐标
用法----------Usage----------
infline(a = NULL, b = NULL, h = NULL, v = NULL, p = NULL, theta = NULL)
## S3 method for class 'infline'
print(x, ...)
## S3 method for class 'infline'
plot(x, ...)
参数----------Arguments----------
参数:a,b
Numeric vectors of equal length giving the intercepts a and slopes b of the lines. Incompatible with h,v,p,theta
数值向量长度相等的拦截a和斜坡b的线条。不相容的h,v,p,theta
参数:h
Numeric vector giving the positions of horizontal lines when they cross the y axis. Incompatible with a,b,v,p,theta
数字矢量为水平线的位置,当他们穿过y轴。不相容的a,b,v,p,theta
参数:v
Numeric vector giving the positions of vertical lines when they cross the x axis. Incompatible with a,b,h,p,theta
数字矢量垂直线的位置时,他们给过x轴。不相容的a,b,h,p,theta
参数:p,theta
Numeric vectors of equal length giving the polar coordinates of the line. Incompatible with a,b,h,v
长度相等的数字向量给线的极坐标。不相容的a,b,h,v
参数:x
An object of class "infline"
对象的类"infline"
参数:...
Extra arguments passed to print for printing or abline for plotting
额外的参数传递给print的印刷或abline绘制
Details
详细信息----------Details----------
The class infline is a convenient way to handle infinite straight lines in the plane.
类infline是一个方便的方式来处理无限的直线在平面上。
The position of a line can be specified in several ways:
行的位置,可以指定在几个方面:
its intercept a and slope b in the equation y = a + b * x can be used unless the line is vertical.
其拦截a和坡b方程y = a + b * x可以使用,除非该线是垂直的。
for vertical lines we can use the position v where the line crosses the y axis
我们可以使用垂直线的位置v线穿过y轴
for horizontal lines we can use the position h where the line crosses the x axis
水平线条,我们可以使用的位置h线穿过x轴
the polar coordinates p and theta can be used for any line. The line equation is
极坐标p和theta可以使用任何线路。该生产线方程为
The command infline will accept line coordinates in any of these formats. The arguments a,b,h,v have the same interpretation as they do in the line-plotting function abline.
命令infline将接受这些格式的任何线的坐标。的参数a,b,h,v有同样的解释,因为他们做的线绘图功能abline。
The command infline converts between different coordinate systems (e.g. from a,b to p,theta) and returns an object of class "infline" that contains a representation of the lines in each appropriate coordinate system. This object can be printed and plotted.
命令infline不同的坐标系之间的转换(例如,从a,b到p,theta),并返回类的一个对象"infline"包含在每一个适当的坐标系中的线条表示。这个对象可以打印和显示出来。
值----------Value----------
The value of infline is an object of class "infline" which is basically a data frame with columns a,b,h,v,p,theta. Each row of the data frame represents one line. Entries may be NA if a coordinate is not applicable to a particular line.
infline是类的一个对象"infline"“”这基本上是一个数据框的列a,b,h,v,p,theta。的数据框中的每一行代表一个行。参赛作品可以是NA如果一个坐标是适用于一个特定的行。
(作者)----------Author(s)----------
Adrian Baddeley
<a href="mailto:Adrian.Baddeley@csiro.au">Adrian.Baddeley@csiro.au</a>
<a href="http://www.maths.uwa.edu.au/~adrian/">http://www.maths.uwa.edu.au/~adrian/</a>
and Rolf Turner
<a href="mailto:r.turner@auckland.ac.nz">r.turner@auckland.ac.nz</a>
实例----------Examples----------
infline(a=10:13,b=1)
infline(p=1:3, theta=pi/4)
plot(c(-1,1),c(-1,1),type="n",xlab="",ylab="", asp=1)
plot(infline(p=0.4, theta=seq(0,pi,length=20)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|