Plot method for ordPen objects

Description

Takes a fitted ordPen object and plots estimated dummy coefficients of ordinal predictors for different lambda values.

Usage

1
2
3
4
## S3 method for class 'ordPen'
plot(x, whichlam = NULL, whichx = NULL, 
  type = NULL, xlab = NULL, ylab = NULL, main = NULL, 
  xlim = NULL, ylim = NULL, col = NULL, ...)

Arguments

x

an ordPen object.

whichlam

a vector of indices of lambda values corresponding to object$lambda for which plotting is done; if NULL, all values from object$lambda are considered.

whichx

a vector of indices indicating the ordinal predictors whose dummy coefficients are plotted; e.g., set whichx=2, if you just want the plot for the second smooth term.

type

1-character string giving the type of plot desired, see plot.default.

xlab

a label for the x axis; if supplied then this will be used as the x label for all plots.

ylab

a label for the y axis; if supplied then this will be used as the y label for all plots.

main

a main title for the plot(s); if supplied then this will be used as the title for all plots.

xlim

the x limits; if supplied then this pair of numbers are used as the x limits for each plot.

ylim

the y limits; if supplied then this pair of numbers are used as the y limits for each plot.

col

the plotting color; can be a vector of the same length as whichlam specifying different colors for different lambda values. Default is shades of gray: the higher lambda the darker.

...

additional graphical parameters (see plot.default, or par).

Value

The function simply generates plots.

Author(s)

Jan Gertheiss

See Also

ordSelect, ordSmooth

Examples

1
2
# see for example
help(ordSelect)