fBeeswarmChart: Those charts with normailsed metric values and a bright mark...

fBeeswarmChartR Documentation

Those charts with normailsed metric values and a bright mark indicating where the PlayerName of interest lies

Description

Those charts with normailsed metric values and a bright mark indicating where the PlayerName of interest lies

Usage

fBeeswarmChart(
  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

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

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