plot.lorenz | R Documentation |
plot.lorenz plots a (generalized) Lorenz curve.
## S3 method for class 'lorenz'
plot(
x,
add = FALSE,
lor.type = "ord",
diff = FALSE,
xlab = FALSE,
ylab = FALSE,
ylim = FALSE,
xlim = FALSE,
type = "l",
lty = FALSE,
...
)
x |
A Lorenz curve object. |
add |
A logical. If TRUE, the Lorenz curve is added to a plot. |
lor.type |
The type of Lorenz curve to be drawn. If "ord", the graph is
an ordinary Lorenz curve |
diff |
A logical. If TRUE, graph is of |
xlab |
The x axis label. Defaults to "Population share". |
ylab |
The y axis label. Defaults to "Income share". |
... |
Additional graphics arguments to pass to the plot function. |
plot.lorenz_list plots a list of lorenz curve on the same graph and optionally places a legend using the names of the lorenz curves as labels.
An ordinary Lorenz curve is bounded in the unit box, is positive and increasing and lies everywhere below the 45 degree line. By default the function draws the 45 degree line and sets ylim and xlim to c(0,1).
If several generalized Lorenz curves are drawn, or ordinary Lorenx curves are drawn with diff = FALSE, care need to be taken that the ylim gets correectly set.
A plot.
Markus Jantti markus.jantti@iki.fi
lorenz
.
plot(lorenz(runif(100), q = 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.