theme_pitch | R Documentation |
Functionally very similar to ggplot2::theme_void
.
theme_pitch(aspect_ratio = 68/105)
aspect_ratio |
Aspect ratio ( |
list of ggplot themes to be added to a ggplot plot
library(ggplot2) shots_data <- data.frame(x = c(90, 85, 82, 78, 83), y = c(43, 40, 52, 56, 44)) p <- ggplot(shots_data, aes(x = x, y = y)) + annotate_pitch() + geom_point() # Pitch fixed to 68/105 by default p + theme_pitch() # Free aspect p + theme_pitch(aspect_ratio = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.