"Smooth"(X, which = "*", ..., method=c("smooth.spline", "loess"), xinterval=NULL)
"fv"
,
see fv.object
).
"*"
or "."
explained below.
smooth.spline
or loess
to control the smoothing.
"smooth.spline"
or "loess"
.
"fv"
)
of the same format.
Smooth.fv
applies smoothing to the function values in
a function value table (object of class "fv"
). Smooth.fv
is a method for the generic function
Smooth
.
The smoothing is performed either by
smooth.spline
or by
loess
.
Smoothing is applied to every column (or to each of the selected columns) of function values 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 optional 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
.
If the argument xinterval
is given, then
smoothing will be performed only in the specified range
of $x$ values.
Smooth
,
with.fv
,
fv.object
,
smooth.spline
,
smooth.spline
data(cells)
G <- Gest(cells)
plot(G)
plot(Smooth(G, df=9), add=TRUE)
Run the code above in your browser using DataLab