locu: Computes support points of the Lorenz curve of a given...

Description Usage Arguments Value Examples

View source: R/locu.R

Description

This function is the initial point to draw a Lorenz curve. It computes the support points of the curve. Call autoplot on the result object to actually draw the curve.

Usage

1
locu(x)

Arguments

x

[numeric]
Numeric source vector with measured quantities.

Value

[list] List containing

source [numeric]

the source vector.

data [data.frame]

the data frame ggplot2 was feeded to produce the Lorenz curve.

Examples

1
2
3
4
x = abs(rnorm(30, mean = 50, sd = 20))
lor = locu(x)
print(head(lor$data))
print(autoplot(lor, highlight.below.curve = TRUE))

jakobbossek/locu documentation built on May 18, 2019, 10:10 a.m.