Library: | plot |
See also: | lorenz |
Quantlet: | plotlorenz | |
Description: | plots a Lorenz curve |
Usage: | plotlorenz(X) | |
Input: | ||
X (must be positive) | n x 1 vector of original data or n x 2 matrix of classified data: first column = class means second column = frequencies. |
library("plot") x = normal(200) x = abs(x) plotlorenz(x) y = 1:5 ~ #(2,6,8,5,2) plotlorenz(y)
shows Lorenz curves and Gini coefficients