Description Usage Arguments References Examples
Provides ordinary Lorenz curve values for line plots
| 1 2 3 4 5 6 7 8 9 10 | 
| mapping | Set of aesthetic mappings created by  | 
| data | The data to be displayed in this layer. There are three options: If  A  A  | 
| geom | which geom to use; defaults to " | 
| position | Position adjustment, either as a string, or the result of a call to a position adjustment function. | 
| ... | Other arguments passed on to  | 
| desc | If FALSE, the default, the population is arranged in ascending order along the x-axis. If TRUE, the population is arranged in descending order. | 
| show.legend | logical. Should this layer be included in the legends?
 | 
| inherit.aes | If  | 
| 1 2 3 4 5 6 7 8 9 10 | library(gglorenz)
ggplot(billionaires, aes(TNW)) +
    stat_lorenz()
ggplot(billionaires, aes(TNW)) +
    stat_lorenz(desc = TRUE) +
    coord_fixed() +
    geom_abline(linetype = "dashed") +
    theme_minimal()
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.