donutMatch: Create a donut chart (match-level)

Description Usage Arguments Details Value

View source: R/visualize_data.R

Description

donutMatch returns a donut chart ggplot object for individual match stats

Usage

1
donutMatch(df, x_lab, y_lab, visCols, themeCol, textCol)

Arguments

df

A formatted dataframe.

x_lab

A string. Labels the x axis.

y_lab

A string. Labels the y axis.

visCols

A vector of hex color strings. Sets the colors of the chart.

themeCol

A hex color string. Sets the background color of the chart.

textCol

A hex color string. Sets the text color of the chart legend.

Details

This function creates a donut chart visualization of match stats.

Value

If all parameters are valid, then the output will be a ggplot object.


ludisanalytics/ludisviz documentation built on Jan. 30, 2021, 12:46 a.m.