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

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

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

                                        plot a Fitted Point Process Model
                                         绘制拟合点过程模型

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

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

Given a fitted point process model obtained by ppm, create spatial trend and conditional intensity surfaces of the model, in a form suitable for plotting, and (optionally) plot these surfaces.
一个装有点过程模型得到ppm,创建空间的趋势和条件强度的模型表面,适合用于绘图的形式,和(可选)绘制这些表面。


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


  ## S3 method for class 'ppm'
plot(x, ngrid = c(40,40), superimpose = TRUE,
                  trend = TRUE, cif = TRUE, se = TRUE, pause = interactive(),
                  how=c("persp","image", "contour"), plot.it = TRUE,
                  locations = NULL, covariates=NULL, ...)



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

参数:x
A fitted point process model, typically obtained from the model-fitting algorithm ppm. An object of class "ppm".  
已安装点过程模型,从模型的拟合算法ppm通常得到。对象的类"ppm"。


参数:ngrid
The dimensions for a grid on which to evaluate, for plotting, the spatial trend and conditional intensity. A vector of 1 or 2 integers. If it is of length 1, ngrid is replaced by c(ngrid,ngrid).  
一格的尺寸,评估,策划,空间趋势和条件强度。中的1或2的整数的向量。如果它的长度为1,ngrid取代c(ngrid,ngrid)。


参数:superimpose
logical flag; if TRUE (and if plot=TRUE) the original data point pattern will be superimposed on the plots.  
逻辑标志;如果TRUE(和如果plot=TRUE)的图将被叠加在原始数据点模式。


参数:trend
logical flag; if TRUE, the spatial trend surface will be produced.  
逻辑标志; TRUE如果,空间趋势面将产生。


参数:cif
logical flag; if TRUE, the conditional intensity surface will be produced.  
逻辑标志; TRUE如果,有条件的强度表面将产生。


参数:se
logical flag; if TRUE, the estimated standard error of the spatial trend surface will be produced.  
逻辑标志,如果TRUE,估计标准误差的空间趋势面将产生。


参数:pause
logical flag indicating whether to pause with a prompt  after each plot. Set pause=FALSE if plotting to a file. (This flag is ignored if plot=FALSE).  
逻辑标志,指示是否暂停提示后每个小区。设置pause=FALSE,如果打印到文件。 (这个标志被忽略,如果plot=FALSE“)。


参数:how
character string or character vector indicating the style or styles of plots to be performed. Ignored if plot=FALSE.   
字符串或字符的样式或风格的绘图,并可以进行矢量。如果忽略plot=FALSE。


参数:plot.it
logical scalar; should a plot be produced immediately?  
逻辑标量,立即产生一个图吗?


参数:locations
If present, this determines the locations of the pixels at which predictions are computed. It must be a binary pixel image (an object of class "owin" with type "mask"). (Incompatible with ngrid).  
如果存在的话,该参数确定的预测计算的像素的位置。它必须是一个二进制像素的图像(类的一个对象"owin"型"mask")。 (不相容的ngrid)。


参数:covariates
Values of external covariates required by the fitted model. Passed to predict.ppm.  
外部协变量的值的拟合模型所要求的。传递到predict.ppm。


参数:...
extra arguments to the plotting functions persp, image and contour.  
额外的参数绘图功能persp,image和contour。


Details

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

This is the plot method for the class "ppm" (see ppm.object for details of this class).
这是plot方法的类"ppm"(见ppm.object这一类的细节)。

It invokes predict.ppm to compute the spatial  trend and conditional intensity of the fitted point process model. See predict.ppm for more explanation about spatial trend and conditional intensity.
它调用predict.ppm计算强度的拟合点过程模型的空间发展趋势和条件。见predict.ppm更多的解释空间趋势和有条件的强度。

The default action is to create a rectangular grid of points in (the bounding box of) the observation window of the data point pattern, and evaluate the spatial trend and conditional intensity of the fitted spatial point process model x at these locations.  If the argument locations= is supplied, then the spatial trend and conditional intensity are calculated at the grid of points specified by this argument.
默认的操作是创建一个矩形网格点(边界框)的观测窗口的数据点模式,并评估空间趋势和条件强度的空间点过程模型的拟合x在这些地方。如果参数locations=提供,那么空间的趋势和条件的强度计算的网格,该参数所指定的点。

The argument locations, if present, should be a binary image mask (an object of class "owin" and type "mask"). This determines a rectangular grid of locations, or a subset of such a grid, at which predictions will be computed. Binary image masks are conveniently created using as.mask.
参数locations,如果存在的话,应该是一个二进制图像掩码(类"owin"和类型的对象"mask")。这确定了的位置的矩形网格,或这样的网格,在其中的一个子集的预测将被计算。二进制图像蒙版可以方便地创建使用as.mask。

The argument covariates gives the values of any spatial covariates at the prediction locations. If the trend formula in the fitted model  involves spatial covariates (other than the Cartesian coordinates x, y) then covariates is required.
参数covariates给任何空间的协变量的预测位置的值。如果这一趋势拟合模型公式涉及到空间的协变量(在直角坐标系以外x,y),然后covariates需要。

The argument covariates has the same format and interpretation as in predict.ppm. It may be either a data frame (the number of whose rows must match the number of pixels in locations multiplied by the number of possible marks in the point pattern),  or a list of images. If argument locations is not supplied, and covariates is supplied, then it must be a list of images.
参数covariates在predict.ppm具有相同的格式和解释。它可以是一个数据框的数量(其行必须在locations乘以由数量的可能标记点图案)的像素的数量相匹配,或一个图像列表。如果参数locations没有提供,和covariates提供,那么它必须是一个图像列表。

If the fitted model was a marked (multitype) point process, then  predictions are made for each possible mark value in turn.
如果拟合模型是显着的(多类型)点的过程,然后进行预测值依次为每一个可能的标记。

If the fitted model had no spatial trend, then the default is  to omit calculating this (flat) surface, unless trend=TRUE is set explicitly.
如果拟合模型没有空间的趋势,那么默认的是省略计算(平)面,除非trend=TRUE显式设置。

If the fitted model was Poisson, so that there were no spatial interactions, then the conditional intensity and spatial trend are identical, and the default is to omit the conditional intensity, unless cif=TRUE is set explicitly.
如果拟合模型是泊松分布,所以有没有空间的相互作用,然后有条件的强度和空间的趋势是相同的,默认的是省略的条件强度,除非cif=TRUE设置明确。

If plot.it=TRUE then plot.plotppm() is called upon to plot the class plotppm object which is produced. (That object is also returned, silently.)
如果plot.it=TRUE然后plot.plotppm()呼吁,绘制类plotppm对象是。 (该对象也回来了,默默)。

Plots are produced successively using persp, image and contour (or only a selection of these three, if how is given).  Extra graphical parameters controlling the display may be passed directly via the arguments ... or indirectly reset using spatstat.options.
图是连续使用persp,image和contour(或只有这三个选择,如果how)。额外的图形参数控制显示的参数可能会通过直接通过...或间接复位spatstat.options。


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

An object of class plotppm.  Such objects may be plotted by plot.plotppm().
对象的类plotppm。这样的对象可以被绘制plot.plotppm()。

This is a list with components named trend and cif, either of which may be missing. They will be missing if the corresponding component does not make sense for the model, or if the corresponding argument was set equal to FALSE.
这是一个名为trend和cif,任何一种都可能会丢失的组件列表。它们将缺少相应的组件没有任何意义的模型,或等于FALSE如果对应的参数设置。

Both trend and cif are lists of images. If the model is an unmarked point process, then they are lists of length 1, so that trend[[1]] is an image of the spatial trend and cif[[1]] is an image of the conditional intensity.
这两个trend和cif是列表的图像。如果模型是一个没有标记的点过程中,他们是长度为1的列表,使trend[[1]]是一个图像的空间趋势和cif[[1]]是有条件的强度的图像。

If the model is a marked point process, then trend[[i]] is an image of the spatial trend for the mark m[i], and cif[[1]] is an image of the conditional intensity for the mark m[i], where m is the vector of levels of the marks.
如果该模型是一个显着的点过程,那么trend[[i]]是图像的空间趋势的标志m[i]和cif[[1]]是有条件的强度为标志的图像<X >,m[i]是矢量的水平的标志。


警告----------Warnings----------

See warnings in predict.ppm.
见警告predict.ppm。


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

plot.plotppm, ppm, ppm.object, predict.ppm, print.ppm, persp, image, contour, plot, spatstat.options
plot.plotppm,ppm,ppm.object,predict.ppm,print.ppm,persp,image,contour,plot,spatstat.options


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


## Not run: [#不运行:]
data(cells)
m <- ppm(cells, ~1, Strauss(0.05))
pm &lt;- plot(m) # The object ``pm'' will be plotted as well as saved[对象“时”将绘制以及保存]
               # for future plotting.[未来的绘制。]

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

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-16 16:34 , Processed in 0.023024 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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