smooth.fv {spatstat}R Documentation

Apply Smoothing to Function Values

Description

Applies spline smoothing to the values in selected columns of a function value table.

Usage

smooth.fv(x, which = "*", ...)

Arguments

x

Values to be smoothed. A function value table (object of class "fv", see fv.object).

which

Character vector identifying which columns of the table should be smoothed. Either a vector containing names of columns, or one of the wildcard strings "*" or "." explained below.

...

Extra arguments passed to smooth.spline to control the smoothing.

Details

smooth.spline is applied to each of the selected columns in turn (using the function argument as the x coordinate and the selected column as the y coordinate). The original function values are then replaced by the corresponding smooth interpolated function values.

The argument which specifies which of the columns of function values in x will be smoothed. The default (indicated by the wildcard which="*") is to smooth all function values, i.e.\ all columns except the function argument. Alternatively which="." designates the subset of function values that are displayed in the default plot. Alternatively which can be a character vector containing the names of columns of x.

Value

Another function value table (object of class "fv") of the same format.

Author(s)

Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz

See Also

with.fv, fv.object, smooth.spline

Examples

   data(cells)
   G <- Gest(cells)
   plot(G)
   plot(smooth.fv(G, df=9), add=TRUE)

[Package spatstat version 1.25-3 Index]