Description Usage Arguments Details Value
View source: R/visualize_data.R
stackMatch returns a stacked bar chart ggplot object for individual match stats
1 | stackMatch(df, x_lab, y_lab, visCols, y_lim)
|
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. |
y_lim |
(optional) A number to set the max y value for the chart. Standardizes the visualization scales across the team/opp. |
This function creates a stacked bar chart visualization comparing team/opp match stats. column stats are aggregated together (eg. summed, used to calculate a ratio, etc.).
If all parameters are valid, then the output will be a ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.