fBeeswarmChart | R Documentation |
Those charts with normailsed metric values and a bright mark indicating where the PlayerName of interest lies
fBeeswarmChart(
dtPlayerMetrics,
vcColumnsToIndex,
dtMetricCategorisation,
iPlayerId,
cTitle,
cFontFamily = "arial",
cForegroundColour = "red",
cBackgroundColour = "black",
cFontColour = "white",
vnExpand = c(0.1, 0.1)
)
dtPlayerMetrics |
A dataset with one row for each PlayerName, and various metrics about the PlayerName declared in separate columns. Refer to the dtPlayerMetrics dataset packaged with the library for an example |
vcColumnsToIndex |
The non-metric columns in your dataset, these are typically columns like name, age, team, position, etc. |
dtMetricCategorisation |
A table with metadata about the variables in dtPlayerMetrics. Refer to the dtMetricCategorisation object declared in the library for an example. |
iPlayerId |
The ID of the player you want visualised |
cTitle |
The title on the chart |
fBeeswarmChart (
dtPlayerMetrics,
vcColumnsToIndex = c('playerId','PlayerName','TeamName'),
dtMetricCategorisation,
iPlayerId = 2,
cTitle = 'Sample'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.