Learn R Programming

StatsBombR (version 0.1.0)

theme_SB: This function returns the theme consistent with reports written by StatsBomb.

Description

This theme is only functional in ggplot2 at the moment. But simply adding the theme at the end of your ggplot object will format your plot in the theme of StatsBomb

Usage

ggplot(StatsBombData, aes(location.x, location.y)) +
 theme_SB()

Arguments

theme

A ggplot theme layer.

Value

theme

A ggplot theme layer.

Examples

Run this code
# NOT RUN {
ggplot(StatsBombData, aes(location.x, location.y)) +
 theme_SB()
# }

Run the code above in your browser using DataLab