Learn R Programming

BasketballAnalyzeR (version 0.5.0)

plot.fourfactors: Plot possessions, pace, offensive and defensive rating, and Four Factors from a 'fourfactors' object

Description

Plot possessions, pace, offensive and defensive rating, and Four Factors from a 'fourfactors' object

Usage

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

Arguments

x

an object of class fourfactors.

title

character, plot title.

...

other graphical parameters.

Value

A list of four ggplot2 plots.

Details

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.

References

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

See Also

fourfactors

Examples

Run this code
# NOT RUN {
selTeams <- c(2,6,10,11)
FF <- fourfactors(Tbox[selTeams,], Obox[selTeams,])
plot(FF)
# }

Run the code above in your browser using DataLab