Learn R Programming

refund (version 0.1-37)

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

Description

Plots the coefficient function estimates produced by fosr().

Usage

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

Arguments

x

an object of class "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, all functions are plotted on the same scale.

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.mfrow

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.

Author

Philip Reiss phil.reiss@nyumc.org

See Also

fosr, which includes examples.