I am trying to create a polygon on one of my graphs I create in ggplot2 in order to denote a "compositional field". I understand that I should be using the geom_polygon function, but I was unable to successfully input this function. The code I have for my graph is below (less geom_polyon). I included a photo of what I am trying to do on my graph. Essentially, I want to create a polyogon between (x = 8, y = 0.8) and (x = 100, y = 2). Any help is greatly appreciate, thank you.
Image [1]: https://i.stack.imgur.com/MR8pj.png
Graph script
ggplot(data = ZonesPd, aes(x = Pd_ppm, y = Cu.Pd)) +
geom_point(aes(color = Mineralized.Zone, size = Mineralized.Zone), alpha = 0.5) +
scale_x_log10(limit = c(1e-3, 1e3), expand = c(0, 0)) +
scale_y_log10(limit = c(1e2, 1e5), expand = c(0, 0)) +
scale_size_manual(values = c(0.5, 0.5, 3)) +
theme(panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
axis.ticks.length = unit(-0.24, "cm"),
axis.text.x = element_text(size = 15, color = "black", margin = margin(0.5, 0.5, 0.5, 0.5,
"cm")),
axis.text.y = element_text(size = 15, color = "black", margin = margin(0.5, 0.5, 0.5, 0.5,
"cm")),
axis.title = element_text(size = 15),
aspect.ratio = 0.75,
legend.position = c(0.8, 0.15),
legend.text = element_text(size = 15),
legend.title = element_blank())
