geom_arc()
library(ggforce)
ggplot() +
#Pitch
geom_rect(aes(xmin = 100, xmax = 101, ymin = 44.7, ymax = 55.1), fill = NA, colour = "black", size = 1) + # Goal
geom_rect(aes(xmin = 50, xmax = 100, ymin = 0, ymax = 100), fill = NA, colour = "black", size = 1) + # Field Around
geom_rect(aes(xmin = 83, xmax = 100, ymin = 21, ymax = 79), fill = NA, colour = "black", size = 1) + #18yrd box
geom_rect(aes(xmin = 100, xmax = 94, ymin = 36.8, ymax = 63.2), fill = NA, colour = "black", size = 1) + #6yrd box
geom_point(aes(x = 88.5, y = 50), colour = "black", size = 1.5) + #PK spot
geom_point(aes(x = 50, y = 50), colour = "black", size = 2) + #Centre circle dot
geom_arc(aes(x0 = 50, y0 = 50, r = 22.5, start = 0, end = 180), size = 1) +
coord_flip() +
xlim(50, 101) +
ylim(0,100)+
#Theme
theme(
panel.background = element_rect(fill = "transparent",colour = NA),
plot.margin = unit(c(0,0,0,0), "cm"),
plot.title = element_text(size = 14, hjust = 0.5, vjust = 1.25),
plot.background = element_rect(fill = "transparent", colour = NA),
line = element_blank(),
axis.title.x = element_blank(),
axis.title.y = element_blank(),
axis.text = element_blank(),
legend.position = "none",
legend.box = "vertical",
legend.background = element_rect(fill = "transparent")
)
注:我对体育一无所知;不知道该字段的适当维度应该是什么。您可能需要调整值以使圆看起来像圆形。。。