fRadarPercentileChart | R Documentation |
The radar stretch out across each metric. The farther the radar stretches on a particular metric, the higher percentile the player is on that metric. You can create percentile bar charts with the same arguments using the fPercentileBarChart function.
fRadarPercentileChart(
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 |
fRadarPercentileChart (
dtPlayerMetrics = dtPlayerMetrics,
vcColumnsToIndex = c('playerId','PlayerName','TeamName'),
dtMetricCategorisation = dtMetricCategorisation,
iPlayerId = 2,
cTitle = 'Sample'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.