plot.fourfactors {BasketballAnalyzeR} | R Documentation |
Plot possessions, pace, offensive and defensive rating, and Four Factors from a 'fourfactors' object
## S3 method for class 'fourfactors'
plot(x, title = NULL, ...)
x |
an object of class |
title |
character, plot title. |
... |
other graphical parameters. |
The height of the bars in the two four factor plots are given by the difference between the team value and the average on the analyzed teams.
A list of four ggplot2
plots.
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.
selTeams <- c(2,6,10,11)
FF <- fourfactors(Tbox[selTeams,], Obox[selTeams,])
plot(FF)