Learn R Programming

refund (version 0.1-1)

plot.fosr: Default plotting of function-on-scalar regression objects

Description

Plots the coefficient function estimates produced by fosr().

Usage

## S3 method for class 'fosr':
plot(x, split = NULL, titles = NULL, xlabel = "", 
ylabel = "Coefficient function", set.par = TRUE, ...)

Arguments

x
an object of class fosr as produced by fosr().
split
value, or vector of values, at which to divide the set of coefficient functions into groups, each plotted on a different scale. E.g., if set to 1, the first function is plotted on one scale, and all others on a different (common) scale. If NULL
titles
character vector of titles for the plots produced, e.g., names of the corresponding scalar predictors.
xlabel
label for the x-axes of the plots.
ylabel
label for the y-axes of the plots.
set.par
logical value: if TRUE, the function will try to set an appropriate value of the mfrow parameter for the plots. Otherwise you may wish to set mfrow outside the function call.
...
graphical parameters (see par) for the plot.

Value

    See Also

    fosr, which includes examples.