autoplot.PLR {LorenzRegression} | R Documentation |
Plots for the penalized Lorenz regression
Description
autoplot
generates summary plots for an object of class "PLR"
and returns them as ggplot
objects.
The plot
method is a wrapper around autoplot
that directly displays the plot,
providing a more familiar interface for users accustomed to base R plotting.
Usage
## S3 method for class 'PLR'
autoplot(
object,
type = c("explained", "traceplot", "diagnostic"),
traceplot.which = "BIC",
score.df = NULL,
...
)
## S3 method for class 'PLR'
plot(x, ...)
Arguments
object |
An object of class |
type |
A character string indicating the type of plot. Possible values are
|
traceplot.which |
This argument indicates the value of the grid parameter for which the traceplot should be produced (see arguments |
score.df |
A data.frame providing the scores to be displayed if |
... |
Additional arguments passed to function |
x |
An object of class |
Details
The available selection methods depend on the classes of the object: BIC is always available, bootstrap is available if object
inherits from "PLR_boot"
, cross-validation is available if object
inherits from "PLR_cv"
Value
autoplot
returns a ggplot
object representing the desired graph. plot
directly displays this plot.
See Also
Examples
## For examples see example(Lorenz.Reg), example(Lorenz.boot) and example(PLR.CV)