plot.ordPen: Plot method for ordPen objects

View source: R/plot.ordPen.R

plot.ordPenR Documentation

Plot method for ordPen objects

Description

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

Usage

## S3 method for class 'ordPen'
plot(x, whl = NULL, whx = NULL, 
  type = NULL, xlab = NULL, ylab = NULL, main = NULL, 
  xlim = NULL, ylim = NULL, col = NULL, ...)

Arguments

x

an ordPen object.

whl

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.

whx

a vector of indices indicating the ordinal predictors whose dummy coefficients are plotted; e.g., set whx=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 whl 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

ordFusion, ordSelect, ordSmooth

Examples

# see for example
help(ordSelect)

ordPens documentation built on Oct. 10, 2023, 5:07 p.m.