Takes a fitted ordPen
object and plots estimated dummy coefficients
of ordinal predictors for different lambda
values.
# S3 method for ordPen
plot(x, whl = NULL, whx = NULL,
type = NULL, xlab = NULL, ylab = NULL, main = NULL,
xlim = NULL, ylim = NULL, col = NULL, ...)
The function simply generates plots.
an ordPen
object.
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.
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.
1-character string giving the type of plot desired, see
plot.default
.
a label for the x axis; if supplied then this will be used as the x label for all plots.
a label for the y axis; if supplied then this will be used as the y label for all plots.
a main title for the plot(s); if supplied then this will be used as the title for all plots.
the x limits; if supplied then this pair of numbers are used as the x limits for each plot.
the y limits; if supplied then this pair of numbers are used as the y limits for each plot.
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
).
Jan Gertheiss
ordFusion
, ordSelect
, ordSmooth
# see for example
help(ordSelect)
Run the code above in your browser using DataLab