Description Usage Arguments Value Author(s) References See Also Examples
View source: R/radialprofile.R
Draws radial plots for player profiles
1 2 3 4 5 6 7 8 |
data |
a data frame. |
perc |
logical; if |
std |
logical; if |
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. |
A list of ggplot2
radial plots or, if ncol.arrange=NULL
, a single ggplot2
plot of arranged radial plots
Marco Sandri, Paola Zuccolotto, Marica Manisera (basketball.analyzer.help@gmail.com)
P. Zuccolotto and M. Manisera (2020) Basketball Data Science: With Applications in R. CRC Press.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.