autoplot.LR {LorenzRegression} | R Documentation |
Plots for the Lorenz regression
Description
autoplot
generates a plot for an object of class "LR"
and returns it as a ggplot
object.
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 'LR'
autoplot(object, type = c("explained", "residuals"), band.level = 0.95, ...)
## S3 method for class 'LR'
plot(x, ...)
Arguments
object |
An object of class |
type |
A character string indicating the type of plot. Possible values are
|
band.level |
Confidence level for the bootstrap confidence intervals. |
... |
Additional arguments passed either to |
x |
An object of class |
Value
autoplot
returns a ggplot
object representing the desired graph. plot
directly displays this plot.
See Also
Examples
## For examples see example(Lorenz.Reg)