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