powered by
Plot Lorenz curve from a 'inequality' object
# S3 method for inequality plot(x, title = NULL, ...)
A ggplot2 object.
ggplot2
an object of class inequality.
inequality
character, plot title.
other graphical parameters.
Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)
P. Zuccolotto and M. Manisera (2020) Basketball Data Science: With Applications in R. CRC Press.
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