autoplot.locu: Actually draws the Lorenz curve.

Description Usage Arguments Value

View source: R/locu.R

Description

Actually draws the Lorenz curve.

Usage

1
2
3
4
5
6
7
## S3 method for class 'locu'
autoplot(object, xlab = "x", ylab = "y",
  main = "Lorenz curve", highlight.below.curve = FALSE,
  highlight.below.curve.fillcolor = "gray",
  highlight.below.curve.alpha = 0.7, highlight.above.curve = FALSE,
  highlight.above.curve.fillcolor = "tomato",
  highlight.above.curve.alpha = 0.7, point.size = 2, ...)

Arguments

object

[locu]
Object of type locu.

xlab

[character]
Label for the x-axis of the Lorenz curve plot. Default is x.

ylab

[character]
Label for the y-axis of the Lorenz curve plot. Default is y.

main

[character]
Plot title. Initialized by default to "Lorenz curve".

highlight.below.curve

[logical(1)]
If TRUE, the area in between the x-axis and the Lorenz curve is highlighed, otherwise not.

highlight.below.curve.alpha

[numeric(1)]
Numeric value in range [0,1] indicating whether the polygon is opaque or (semi)transparent.

highlight.below.curve.fillcolor

[character]
Color given by one of the build-in color names of R.

highlight.above.curve

[logical(1)]
If TRUE, the area in between the Lorenz curve and the line of equality is highlighed, otherwise not.

highlight.above.curve.alpha

[numeric(1)]
Numeric value in range [0,1] indicating whether the space between Lorenz curve and the line of equality is opaque or (semi)transparent.

highlight.above.curve.fillcolor

[character]
Color given by one of the build-in color names of R.

point.size

[numeric(1)]
Point size.

...

[list]
Further params.

Value

Object of type ggplot.


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