fRadarPercentileChart: A worse but more popular alternative to percentile bar charts

fRadarPercentileChartR Documentation

A worse but more popular alternative to percentile bar charts

Description

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.

Usage

fRadarPercentileChart(
  dtPlayerMetrics,
  vcColumnsToIndex,
  dtMetricCategorisation,
  iPlayerId,
  cTitle,
  cFontFamily = "arial",
  cForegroundColour = "red",
  cBackgroundColour = "black",
  cFontColour = "white",
  vnExpand = c(0.1, 0.1)
)

Arguments

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

Examples

fRadarPercentileChart (
   dtPlayerMetrics = dtPlayerMetrics,
   vcColumnsToIndex = c('playerId','PlayerName','TeamName'),
   dtMetricCategorisation = dtMetricCategorisation,
   iPlayerId = 2,
   cTitle = 'Sample'
)

thecomeonman/CodaBonito documentation built on April 24, 2023, 11:41 a.m.