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 "LR".

...

Additional arguments passed to Lorenz.graphs.

x

An object of class "LR".

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

Lorenz.Reg

Examples

## For examples see example(Lorenz.Reg)


[Package LorenzRegression version 2.1.0 Index]