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

R语言 spatstat包 plot.fv()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 13:56:09 | 显示全部楼层 |阅读模式
plot.fv(spatstat)
plot.fv()所属R语言包:spatstat

                                        Plot Function Values
                                         积函数值

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

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

Plot method for the class "fv".
图法类"fv"。


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


## S3 method for class 'fv'
plot(x, fmla, ..., subset=NULL, lty=NULL, col=NULL, lwd=NULL,
           xlim=NULL, ylim=NULL, xlab=NULL, ylab=NULL, ylim.covers=NULL,
           legend=!add, legendpos="topleft", legendavoid=missing(legendpos),
           legendmath=TRUE, legendargs=list(),
           shade=NULL, shadecol="grey", add=FALSE, limitsonly=FALSE)



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

参数:x
An object of class "fv", containing the variables to be plotted or variables from which the plotting coordinates can be computed.  
类的一个对象"fv",包含要绘制的变量或绘图的坐标,可以计算的变量。


参数:fmla
an R language formula  determining which variables or expressions are plotted. Either a formula object, or a string that can be parsed as a formula. See Details.  
R语言绘制的变量或表达式的计算公式。无论是一个公式对象,或一个字符串,可以被解析为一个公式。查看详细信息。


参数:subset
(optional) subset of rows of the data frame that will be plotted.  
(可选)的子集的行的数据框将被绘制。


参数:lty
(optional) numeric vector of values of the graphical parameter lty controlling the line style of each plot.  
(可选)数字矢量的图形参数lty控制每个小区的线条样式的值。


参数:col
(optional) numeric vector of values of the graphical parameter col controlling the colour of each plot.  
(可选)数字矢量的图形参数col控制的颜色,每个小区的值。


参数:lwd
(optional) numeric vector of values of the graphical parameter lwd controlling the line width of each plot.  
(可选)数字矢量的图形lwd控制线的宽度,每个小区参数的值。


参数:xlim
(optional) range of x axis  
(可选)的x轴方向的范围内


参数:ylim
(optional) range of y axis  
Y轴范围(可选)


参数:xlab
(optional) label for x axis  
(可选)为x轴的标签


参数:ylab
(optional) label for y axis  
(可选)为y轴的标签


参数:...
Extra arguments passed to plot.default.  
额外的参数传递给plot.default。


参数:ylim.covers
Optional vector of y values that must be included in the y axis. For example ylim.covers=0 will ensure that the y axis includes the origin.  
可选矢量y值必须包含在y轴。例如ylim.covers=0将确保y轴的起源。


参数:legend
Logical flag or NULL. If legend=TRUE, the algorithm plots a legend in the top left corner of the plot, explaining the meaning of the different line types and colours.  
逻辑标志或NULL。如果legend=TRUE,该算法绘制传说中左上角的图,解释不同的线路类型和颜色的含义。


参数:legendpos
The position of the legend. Either a character string keyword (see legend for keyword options) or a pair of coordinates in the format list(x,y). Alternatively if legendpos="float", a location will be selected inside the plot region, avoiding the graphics.  
位置的传说。无论是字符串关键字(见legend关键字选项)或一对坐标的格式list(x,y)。另外,如果legendpos="float",位置将被选中里面的图区域,避免了图形。


参数:legendavoid
Whether to avoid collisions between the legend and the graphics. Logical value. If TRUE, the code will check for collisions between the legend box and the graphics, and will override legendpos if a collision occurs. If FALSE, the value of legendpos is always respected.  
无论以避免冲突的传说和图形之间。逻辑值。如果TRUE,代码将检查的传说框和图形之间的碰撞,将覆盖legendpos如果发生冲突。如果FALSE,legendpos始终尊重。


参数:legendmath
Logical. If TRUE, the legend will display the mathematical notation for each curve. If FALSE, the legend text is the identifier (column name) for each curve.  
逻辑。如果TRUE,传说中会显示为每条曲线的数学符号。如果FALSE,图例文本是为每条曲线的标识符(列名)。


参数:legendargs
Named list containing additional arguments to be passed to legend controlling the appearance of the legend.  
命名列表,其中包含额外的参数传递给legend控制外观的传说,。


参数:shade
An index that identifies two columns of x. When the corresponding curves are plotted, the region between the curves will be  shaded in light grey.  Often used for displaying simulation envelopes, by setting shade=c("hi", "lo").  
一个索引,可识别两列x。当对应的曲线绘制的曲线之间的区域将被以浅灰色阴影。通常用于显示模拟的信封,,通过设置shade=c("hi", "lo")。


参数:shadecol
The colour to be used in the shade plot. A character string or an integer specifying a colour.  
要使用的颜色在shade图。一个字符串或一个整数,指定一种颜色。


参数:add
Logical. Whether the plot should be added to an existing plot  
逻辑。图是否应该被添加到现有的图


参数:limitsonly
Logical. If FALSE, plotting is performed normally. If TRUE, no plotting is performed at all;  just the x and y limits of the plot are computed and returned.   
逻辑。如果FALSE,绘制正常进行。如果TRUE,没有策划执行;只是x和y限制的图,计算并返回。


Details

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

This is the plot method for the class "fv".
这是plot方法的类"fv"。

The use of the argument fmla is like plot.formula, but offers some extra functionality.
该使用的参数fmla的像plot.formula,但提供了一些额外的功能。

The left and right hand sides of fmla are evaluated, and the results are plotted against each other (the left side on the y axis  against the right side on the x axis).
的左和右手侧的fmla进行评估,其结果绘制互相反对(y轴对右侧x轴左侧)。

The left and right hand sides of fmla may be the names of columns of the data frame x, or expressions involving these names. If a variable in fmla is not the name of a column of x, the algorithm will search for an object of this name in the environment where plot.fv was called, and then in the enclosing environment, and so on.
的左和右手侧的fmla可能是数据框x,或涉及这些名称的表达式的列的名称。如果一个变量在fmla是不是一列x的名称,该算法将搜索这个名字对象的环境下,plot.fv被称为,然后在封闭的环境,等等。

Multiple curves may be specified by a single formula of the form  cbind(y1,y2,...,yn) ~ x, where x,y1,y2,...,yn are expressions involving the variables in the data frame. Each of the variables y1,y2,...,yn in turn will be plotted against x.  See the examples.
多条曲线,可以指定一个公式的形式cbind(y1,y2,...,yn) ~ x,其中x,y1,y2,...,yn是涉及到的数据框中的变量的表达式。的每一个变量y1,y2,...,yn反过来将被绘制对x。见的例子。

Convenient abbreviations which can be used in the formula are
方便可以在公式中使用的缩写是

the symbol . which represents all the variables in the data frame (other than the function argument itself);
符号.代表所有的数据框中的变量(函数的参数本身以外);

the symbol .x which represents the function argument;
符号.x它代表了函数的参数;

the symbol .y which represents the recommended value of the function.
符号.y代表建议值的功能。

The value returned by this plot function indicates the meaning of the line types and colours in the plot. It can be used to make a suitable legend for the plot if you want to do this by hand. See the examples.
该图函数的返回值线类型和颜色在图中表示的含义。它可以用来做一个合适的传说的图,如果你想做到这一点的手。见的例子。

The argument shade can be used to display critical bands or confidence intervals. If it is not NULL, then it should be a subset index for the columns of x, that identifies exactly 2 columns. When the corresponding curves are plotted, the region between the curves will be shaded in light grey. See the Examples.
参数shade可用于显示重要的乐队或置信区间。如果它不是NULL,那么它应该是指数为列x,标识完全相同2列的一个子集。当对应的曲线绘制的曲线之间的区域将被以浅灰色阴影。请参阅范例。

The default values of lty, col and lwd can be changed using spatstat.options("plot.fv").
默认值lty,col和lwd,可以改变spatstat.options("plot.fv")。

Use type = "n" to create the plot region and draw the axes without plotting any data.
使用type = "n"创建的图区域,并绘制轴的不绘制任何数据的情况下。

Use limitsonly=TRUE to suppress all plotting and just compute the x and y limits. This can be used to calculate common x and y scales for several plots.
使用limitsonly=TRUE抑制所有策划和计算x和y限制。这可以用来计算几个图的共同x和y尺度。


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

Either NULL, or a data frame giving the meaning of the different line types and colours.
无论哪种NULL,或一个数据框给出的不同的线路的类型和颜色的含义。


(作者)----------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>




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

fv.object, Kest
fv.object,Kest


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


   K <- Kest(cells)
   # K is an object of class "fv"[K是一个对象的类“FV”]

   plot(K, iso ~ r)                # plots iso against r[图异反对研究]

   plot(K, sqrt(iso/pi) ~ r)   # plots sqrt(iso/r)  against r[图SQRT(ISO / R)反对研究]

   plot(K, cbind(iso,theo) ~ r)   # plots iso against r  AND theo against r[图反对研究对r和理论的异]

   plot(K, .  ~ r)            # plots all available estimates of K against r[绘制所有的K估计反对研究]

   plot(K, sqrt(./pi) ~ r)   # plots all estimates of L-function[图L-函数的估计]
                             # L(r) = sqrt(K(r)/pi)[L(R)= SQRT(/ PI K(R))]

   plot(K, cbind(iso,theo) ~ r, col=c(2,3))
                                   # plots iso against r  in colour 2[图ISO对r的颜色2]
                                   # and theo against r in colour 3[和理论对r的颜色3]

   plot(K, iso ~ r, subset=quote(r < 0.2))
                                   # plots iso against r for r &lt; 10[图r为ISO对R <10]

   # Can't remember the names of the columns? No problem..[的列名不记得吗?没有问题。]
   plot(K, sqrt(./pi) ~ .x)

   # making a legend by hand[一个传奇的手]
   v <- plot(K, . ~ r, legend=FALSE)
   legend("topleft", legend=v$meaning, lty=v$lty, col=v$col)

   # significance bands[意义乐队]
   KE <- envelope(cells, Kest, nsim=19)
   plot(KE, shade=c("hi", "lo"))

   # how to display two functions on a common scale[如何显示两个功能的通用比例]
   Kr <- Kest(redwood)
   a <- plot(K, limitsonly=TRUE)
   b <- plot(Kr, limitsonly=TRUE)
   xlim <- range(a$xlim, b$xlim)
   ylim <- range(a$ylim, b$ylim)
   opa <- par(mfrow=c(1,2))
   plot(K, xlim=xlim, ylim=ylim)
   plot(Kr, xlim=xlim, ylim=ylim)
   par(opa)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-16 00:30 , Processed in 0.046660 second(s), 25 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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