radialprofile: Draws radial plots for player profiles

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

View source: R/radialprofile.R

Description

Draws radial plots for player profiles

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
5
6
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)

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