I'm trying to make sure that the district labels don't overlap on my graph as they are kinda congested and too many. However, using geom_text_repel produces no results even when I let it run for hours. Please help me out I have been stuck on this for so long. I have attached the picture for when I use the simple geom_text( without the repel)
w <- map_and_data%>%
group_by(districts)%>%
mutate(avgterror=mean(Typetattacksmilitants)*100)
options(ggrepel.max.overlaps = Inf)
n <- ggplot(w,aes(total,avgterror,label=districts)) + geom_point() +
labs( title = "Relationship between Average Number of Terrorist attacks and Frequency of Cellphone Shutdowns",
caption="Grouped by District",
x="Frequency of Cellphone Shutdowns",
y="Average number of Terrorist Attacks") +
geom_text_repel(aes(label=districts))
This is my plot with overlaps
![](https://i.stack.imgur.com/WFmBX.png)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…