radialprofile {BasketballAnalyzeR}R Documentation

Draws radial plots for player profiles

Description

Draws radial plots for player profiles

Usage

radialprofile(
  data,
  perc = FALSE,
  std = TRUE,
  title = NULL,
  ncol.arrange = NULL,
  min.mid.max = NULL
)

Arguments

data

a data frame.

perc

logical; if perc=TRUE, std=FALSE and min.mid.max=NULL, set axes range between 0 and 100 and set the middle dashed line at 50.

std

logical; if std=TRUE, variables are preliminarily standardized.

title

character vector, titles for radial plots.

ncol.arrange

integer, number of columns in the grid of arranged plots.

min.mid.max

numeric vector with 3 elements: lower bound, middle dashed line, upper bound for radial axis.

Value

A list of ggplot2 radial plots or, if ncol.arrange=NULL, a single ggplot2 plot of arranged radial plots

Author(s)

Marco Sandri, Paola Zuccolotto, Marica Manisera (basketball.analyzer.help@gmail.com)

References

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

See Also

plot.kclustering

Examples

data("Pbox")
Pbox.PG <- Pbox[1:6,]
X <- data.frame(Pbox.PG$P2M, Pbox.PG$P3M, Pbox.PG$OREB+Pbox.PG$DREB,
                Pbox.PG$AST, Pbox.PG$TO)/Pbox.PG$MIN
names(X) <- c("P2M","P3M","REB","AST","TO")
radialprofile(data=X, ncol.arrange=3, title=Pbox.PG$Player)

[Package BasketballAnalyzeR version 0.5.0 Index]