Learn R Programming

spatstat.model (version 3.3-5)

as.fv.kppm: Convert Fitted Model To Class fv

Description

Converts fitted model into a function table (an object of class "fv").

Usage

# S3 method for kppm
as.fv(x)

# S3 method for dppm as.fv(x)

# S3 method for minconfit as.fv(x)

Value

An object of class "fv" (see fv.object).

Arguments

x

A fitted model which will be converted into a function table

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner rolfturner@posteo.net and Ege Rubak rubak@math.aau.dk

Details

The generic command as.fv converts data x, that could be interpreted as the values of a function, into a function value table (object of the class "fv" as described in fv.object). This object can then be plotted easily using plot.fv.

Objects of class "kppm" (and related classes) represent a model that has been fitted to a dataset by computing a summary function of the dataset and matching it to the corresponding summary function of the model. The methods for as.fv for classes "kppm", "dppm" and "minconfit" extract this information: the result is a function table containing the observed summary function and the best fit summary function.

Examples

Run this code
  as.fv(kppm(redwood))

Run the code above in your browser using DataLab