Bellow is my code:

```
library(sportyR)
library(ggplot2)
geom_basketball('nba', full_surf = FALSE, rotate = TRUE)

```

This is the github page: <https://github.com/sportsdataverse/sportyR>

I have to change the color of the white space outside the court chart. For example, I did this:

```
theme(panel.spacing = unit(0,'cm'),
              legend.position = 'top',
              plot.background = element_rect(fill = 'red', color = 'whitesmoke'),
              panel.background = element_rect(fill = 'red', color = 'whitesmoke'))

```

And it didnt work. I already tried everything.

Any help?

PS: (EDITED)
This is the output that I have when I do:

```
geom_basketball('nba', full_surf = FALSE, rotate = TRUE,
                substitution_area_color = 'red',
                court_apron_color = 'red')

```

[![enter image description here](https://i.stack.imgur.com/G0j94.png)](https://i.stack.imgur.com/G0j94.png)

I still have white spaces. Note the ("Plot made with sportyR" text area)