plot.inequality {BasketballAnalyzeR}R Documentation

Plot Lorenz curve from a 'inequality' object

Description

Plot Lorenz curve from a 'inequality' object

Usage

## S3 method for class 'inequality'
plot(x, title = NULL, ...)

Arguments

x

an object of class inequality.

title

character, plot title.

...

other graphical parameters.

Value

A ggplot2 object.

Author(s)

Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)

References

P. Zuccolotto and M. Manisera (2020) Basketball Data Science: With Applications in R. CRC Press.

See Also

inequality

Examples

Pbox.BN <- subset(Pbox, Team=="Brooklyn Nets")
out <- inequality(Pbox.BN$PTS, nplayers=8)
print(out)
plot(out)

[Package BasketballAnalyzeR version 0.5.0 Index]