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, ...)
## S3 method for class 'LR'
plot(x, ...)
Arguments
object |
An object of class |
... |
Additional arguments passed to |
x |
An object of class |
Value
autoplot
returns a ggplot
object representing the Lorenz curve of the response and the concentration curve of the response with respect to the estimated index. plot
directly displays this plot.
See Also
Examples
## For examples see example(Lorenz.Reg)
[Package LorenzRegression version 2.0.0 Index]