Learn R Programming

BasketballAnalyzeR (version 0.5.0)

plot.inequality: Plot Lorenz curve from a 'inequality' object

Description

Plot Lorenz curve from a 'inequality' object

Usage

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

Arguments

x

an object of class inequality.

title

character, plot title.

...

other graphical parameters.

Value

A ggplot2 object.

References

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

See Also

inequality

Examples

Run this code
# NOT RUN {
Pbox.BN <- subset(Pbox, Team=="Brooklyn Nets")
out <- inequality(Pbox.BN$PTS, nplayers=8)
print(out)
plot(out)
# }

Run the code above in your browser using DataLab