Default plotting for wavelet-domain scalar-on-function regression

Share:

Description

Plots the coefficient function/image estimates produced by wcr and wnet.

Usage

1
2
3
4
5
6
## S3 method for class 'wcr'
plot(x, xlabel = "", ylabel = "Coefficient function", which.dim = 1, slices = NULL, 
set.mfrow = TRUE, image.axes = FALSE, ...)
## S3 method for class 'wnet'
plot(x, xlabel = "", ylabel = "Coefficient function", which.dim = 1, slices = NULL, 
set.mfrow = TRUE, image.axes = FALSE, ...)

Arguments

x

an object of class "wcr" or "wnet".

xlabel, ylabel

for 1D functional predictors, x- and y-axis labels.

which.dim, slices

for 3D image predictors, the dimension (1, 2 or 3) and slices to use for plotting; see Details.

set.mfrow

logical value: for 3D predictors, if TRUE (the default), the function will try to set an appropriate value of the mfrow plotting parameter to display the number of slices specified. Otherwise you may wish to set mfrow outside the function call.

image.axes

for 2D and 3D predictors, the axes argument passed to image.

...

additional parameters passed to plot or image.

Details

As an example of how which.dim and slices are used, suppose we set which.dim=2 and slices=7:9. Then three 2D slices of the coefficient image estimate x$fhat are displayed: x$fhat[ , 7, ], x$fhat[ , 8, ], and x$fhat[ , 9, ].

Author(s)

Lan Huo lan.huo@nyumc.org

See Also

wcr and wnet; the latter includes examples.