I have created a lollipop chart with the following code. I am trying to add a legend to the chart, detailing the orange colour as "2020" and the purple colour as "Average". How would I do so?
ggplot(LGA_top3) +
geom_segment(aes(x = LGA, xend = LGA, y = 2020, yend = Average)) +
geom_point(aes(x = LGA, y = 2020), color="orange", size=3) +
geom_point(aes(x = LGA, y = Average), color="purple", size=3) +
coord_flip() +
theme(legend.position="right") +
facet_wrap(~`Offence Category`, ncol=1, scale="free_y") +
labs(x = "Local Government Area (LGA)", y = "Total")
