plot.corranalysis: Plots the correlation matrix and the correlation network from...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/plot.corranalysis.R

Description

Plots the correlation matrix and the correlation network from a 'corranalysis' object

Usage

1
2
## S3 method for class 'corranalysis'
plot(x, horizontal = TRUE, title = NULL, ...)

Arguments

x

an object of class corranalysis.

horizontal

logical; if TRUE, the two plots are arranged horizontally.

title

character, plot title.

...

other graphical parameters

Value

A ggplot2 object

Author(s)

Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)

References

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

See Also

corranalysis

Examples

1
2
3
4
5
6
7
data <- data.frame(Pbox$PTS,Pbox$P3M,Pbox$P2M,
                   Pbox$OREB + Pbox$DREB,Pbox$AST,
                   Pbox$TOV,Pbox$STL,Pbox$BLK)/Pbox$MIN
names(data) <- c("PTS","P3M","P2M","REB","AST","TOV","STL","BLK")
data <- subset(data, Pbox$MIN >= 500)
out <- corranalysis(data, threshold=0.5)
plot(out)

BasketballAnalyzeR documentation built on July 2, 2020, 2:14 a.m.