Learn R Programming

RandomFields (version 3.1.8)

RMmodel-class: Class RMmodel

Description

Class for RandomField's representation of explicit covariance models

Usage

## S3 method for class 'RMmodel,missing':
plot(x, y, dim=1, n.points=200,
 fct.type=NULL, MARGIN, fixed.MARGIN, maxchar=15, ...)

## S3 method for class 'RMmodel': points(x, y, n.points=200, fct.type=NULL, ...)

## S3 method for class 'RMmodel': lines(x, y, n.points=200, fct.type=NULL, ...)

Arguments

x
object of class RFsp or RFempVario or RFfit or
y
ignored in most methods
MARGIN
vector of two; two integer values giving the coordinate dimensions w.r.t. which the field or the covariance model is to be plotted; in all other directions, the first index is taken
fixed.MARGIN
only for class(x)=="RMmodel" and if dim > 2; a vector of length dim-2 with distance values for the coordinates that are not displayed
maxchar
integer. Maximum number of characters to print the model in the legend.
...
arguments to be passed to methods; mainly graphical arguments, or further models in case of class 'RMmodel', see Details.
dim
must equal 1 or 2; only for class(x)=="RMmodel"; the covariance function and the variogram are plotted as a function of $\R^\code{dim}$.
n.points
integer; only for class(x)=="RMmodel"; the number of points at which the model evaluated (in each dimension); defaults to 200
fct.type
character; only for class(x)=="RMmodel"; must equal NULL, "Cov" or "Variogram"; controls whether the covariance (fct.type="Cov") or the variogram (fct.type="Variogram"

Creating Objects

Objects are created by calling a function of class RMmodelgenerator

See Also

RMmodelgenerator RMmodel

Examples

Run this code
# see RMmodel for introductory examples


# Compare:
model <- RMexp(scale=2) + RMnugget(var=3)
str(model)  ## S4 object as default in version 3 of RandomFields

model <- summary(model)
str(model)  ## list style as in version 2 of RandomFields
            ## see also 'spConform' in 'RFoptions' to make this style
            ## the default


FinalizeExample()

Run the code above in your browser using DataLab